ThreadWeaver::WeaverInterface Class
class ThreadWeaver::WeaverInterface| Header: | #include <ThreadWeaver/WeaverInterface> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS ThreadWeaver)target_link_libraries(mytarget PRIVATE KF6::ThreadWeaver) |
| Inherited By: |
Public Functions
| virtual | ~WeaverInterface() |
| virtual ThreadWeaver::JobPointer | applyForWork(ThreadWeaver::Thread *th, bool wasBusy) = 0 |
| virtual void | waitForAvailableJob(ThreadWeaver::Thread *th) = 0 |
Detailed Description
Member Function Documentation
[virtual noexcept] WeaverInterface::~WeaverInterface()
[pure virtual] ThreadWeaver::JobPointer WeaverInterface::applyForWork(ThreadWeaver::Thread *th, bool wasBusy)
Assign a job to an idle thread.
th the thread to give a new Job to
wasBusy true if a job was previously assigned to the calling thread
[pure virtual] void WeaverInterface::waitForAvailableJob(ThreadWeaver::Thread *th)
Wait (by suspending the calling thread) until a job becomes available.