Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Runs a task in the global instance of QThreadPool. More...
#include <qwindowsthreadpoolrunner.h>
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.