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>.
Loading...
Searching...
No Matches
QWindowsThreadPoolRunner Class Reference

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QWindowsThreadPoolRunner()

QWindowsThreadPoolRunner::QWindowsThreadPoolRunner ( )
inline

Definition at line 72 of file qwindowsthreadpoolrunner.h.

Member Function Documentation

◆ run()

template<class Function >
bool QWindowsThreadPoolRunner::run ( Function f,
unsigned long = 5000 )
inline

Definition at line 75 of file qwindowsthreadpoolrunner.h.


The documentation for this class was generated from the following file: