Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Optimize Thread usage #4

Description

@FlyingRatBull

Optimize thread usage:

  • Use IDs in calls to seperate different call returns
  • Use threads out of thread pools to run requested functions in
  • Let the thread pool be user customisable
  • Use an dynamic thread pool with min. 1 thread as default
  • Use QFuture and QFutureWatcher to track the state of the executed function
  • Use default timeout of 0 (no timeout) for calling functions from client
  • Don't cancel runnable if timeout is reached
  • Send finishing flag of Runnable atfer completion
  • If call to server times out, return in client code but store id of call for later handling of return code

Optional:

  • Maybe find a way to use QFuture in client code to return from call() and callRet() directly and watching the return value manually
  • Use cancel functionality of QFuture/called to cancel call on server

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions