workerthread.cpp
69 // We have to check quitRequested here (not only after waitForOperationsToDo.wait()) because quit() can
70 // be called before run() starts. In that case quitRequested is already true, but we lost the "signal"
121 stopCurrentOperation(false); // No need to wait on operation to finish, we wait for the entire thread to complete
void exceptionDuringOperation(farsa::BaseException *e)
The signal emitted when a ThreadOperation throws as exception.
void quit()
stop the current operation and quit from the thread terminating its cycle.
Definition: workerthread.cpp:117
An exception thrown when we catch standard library exceptions in a worker thread. ...
Definition: utilitiesexceptions.h:169
interface for describing an operation to do for the WorkerThread
Definition: workerthread.h:108
The exception stored when an unknown exception is thrown by a ThreadOperation.
Definition: workerthread.h:44
void addOperation(ThreadOperation *operation, bool deleteAtEnd=true)
Add an operation to the queue.
Definition: workerthread.cpp:45