Provides an interface for representing a dispatch queue and methods that can be called to modify or use the queue.
More...
List of all members.
Detailed Description
Provides an interface for representing a dispatch queue and methods that can be called to modify or use the queue.
Read Apple's documentation of libDispatch to understand the concept of tasks and queues.
- See also:
- QDispatch for creating QDispatchQueues
Constructor & Destructor Documentation
QDispatchQueue::QDispatchQueue |
( |
const QString & |
label | ) |
|
QDispatchQueue::QDispatchQueue |
( |
const char * |
| ) |
|
QDispatchQueue::QDispatchQueue |
( |
dispatch_queue_t |
| ) |
|
QDispatchQueue::~QDispatchQueue |
( |
| ) |
|
Member Function Documentation
virtual void QDispatchQueue::after |
( |
QRunnable * |
, |
|
|
const QTime & |
time |
|
) |
| [virtual] |
Applies the given QRunnable for async execution in this queue after the given time and returns immediately.
- Parameters:
-
time | The time to wait until the QRunnable is applied to the queue. |
virtual void QDispatchQueue::after |
( |
QRunnable * |
, |
|
|
dispatch_time_t |
time |
|
) |
| [virtual] |
virtual void QDispatchQueue::after |
( |
dispatch_block_t |
, |
|
|
const QTime & |
time |
|
) |
| [virtual] |
Same as after().
Will wrap the given block in a QRunnable and put it on the queue.
Applies the given QRunnable for async execution in this queue and returns immediately.
In case the autoDelete() flag of the passed QIterationRunnable is set to true it is ensured that the runnable will be deleted after being executed the requested number of times
- Parameters:
-
times | The number of times the QRunnable will be executed |
virtual void QDispatchQueue::async |
( |
QRunnable * |
| ) |
[virtual] |
Applies the given QRunnable for async execution in this queue and returns immediately.
virtual void QDispatchQueue::set_finalizer |
( |
QRunnable * |
, |
|
|
const xdispatch::queue & |
= xdispatch::global_queue() |
|
) |
| [virtual] |
Sets the given runnable as finalizer for this queue.
A finalizer is called before destroying a queue, i.e. if all QDispatchQueue objects representing the queue were deleted and all pending work on a queue was dispatched.
virtual void QDispatchQueue::sync |
( |
QRunnable * |
| ) |
[virtual] |
Applies the given QRunnable for execution int his queue and blocks until the QRunnable was executed.
The documentation for this class was generated from the following file: