![]() |
Qt 6.x
The Qt SDK
|
Runs a task in the global instance of QThreadPool. More...
#include <qwindowsthreadpoolrunner.h>
Collaboration diagram for QWindowsThreadPoolRunner:Public Member Functions | |
| QWindowsThreadPoolRunner () | |
| template<class Function > | |
| bool | run (Function f, unsigned long=5000) |
Runs a task in the global instance of QThreadPool.
QThreadPool does not provide a method to wait on a single task, so this needs to be done by using QWaitCondition/QMutex.
Definition at line 23 of file qwindowsthreadpoolrunner.h.
|
inline |
Definition at line 72 of file qwindowsthreadpoolrunner.h.
|
inline |
Definition at line 75 of file qwindowsthreadpoolrunner.h.