Single Instance Interface to control the dispatch behaviour. More...
#include <QtDispatch/qdispatch.h>
Public Types | |
enum | Priority { HIGH, DEFAULT, LOW } |
Three priority classes used for the three standard global queues. More... | |
Static Public Member Functions | |
static QDispatchQueue | mainQueue () |
Returns the main queue. | |
static QDispatchQueue | globalQueue (Priority p=DEFAULT) |
Returns the global queue associated to the given Priority p. | |
static QDispatchQueue | currentQueue () |
static dispatch_time_t | asDispatchTime (const QTime &) |
static QTime | asQTime (dispatch_time_t t) |
Single Instance Interface to control the dispatch behaviour.
Use this object to create new queues, get one of the main or global queues.
When using this object from within a QRunnable executed on a queue you can also use it to get the queue you're running in.
For information about the Dispatch mechanism, please also see Apple's documentation on libDispatch.
Definition at line 49 of file qdispatch.h.
enum QDispatch::Priority |
Three priority classes used for the three standard global queues.
Definition at line 57 of file qdispatch.h.
static dispatch_time_t QDispatch::asDispatchTime | ( | const QTime & | ) | [static] |
static QTime QDispatch::asQTime | ( | dispatch_time_t | t | ) | [static] |
static QDispatchQueue QDispatch::currentQueue | ( | ) | [static] |
static QDispatchQueue QDispatch::globalQueue | ( | Priority | p = DEFAULT | ) | [static] |
Returns the global queue associated to the given Priority p.
Runnables submitted to these global concurrent queues may be executed concurrently with respect to each other.
static QDispatchQueue QDispatch::mainQueue | ( | ) | [static] |
Returns the main queue.
This is the queue running within the Qt Event Loop. Thus only items put on this queue can change the GUI.