Provides a QRunnable Implementation for use with blocks on clang or Apple gcc 4.2. More...
#include <QtDispatch/qblockrunnable.h>
Public Member Functions | |
QBlockRunnable (dispatch_block_t b) | |
Constructs a new QBlockRunnable using the given block, e.g. | |
QBlockRunnable (const QBlockRunnable &other) | |
virtual | ~QBlockRunnable () |
virtual void | run () |
Provides a QRunnable Implementation for use with blocks on clang or Apple gcc 4.2.
Please see the documentation for QRunnable for the functionality of the autoDelete flags as well.
Definition at line 47 of file qblockrunnable.h.
QBlockRunnable::QBlockRunnable | ( | dispatch_block_t | b | ) | [inline] |
Constructs a new QBlockRunnable using the given block, e.g.
QBlockRunnable task(^{cout << "Hello World\n";});
Definition at line 57 of file qblockrunnable.h.
QBlockRunnable::QBlockRunnable | ( | const QBlockRunnable & | other | ) | [inline] |
Definition at line 59 of file qblockrunnable.h.
virtual QBlockRunnable::~QBlockRunnable | ( | ) | [inline, virtual] |
Definition at line 61 of file qblockrunnable.h.
virtual void QBlockRunnable::run | ( | ) | [inline, virtual] |
Definition at line 65 of file qblockrunnable.h.