Provides a QRunnable Implementation for use with blocks on clang or lambda functions in C++0x. 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 lambda functions in C++0x.
Please see the documentation for QRunnable for the functionality of the autoDelete flags as well.
Definition at line 48 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 58 of file qblockrunnable.h.
QBlockRunnable::QBlockRunnable | ( | const QBlockRunnable & | other | ) | [inline] |
Definition at line 60 of file qblockrunnable.h.
virtual QBlockRunnable::~QBlockRunnable | ( | ) | [inline, virtual] |
Definition at line 62 of file qblockrunnable.h.
virtual void QBlockRunnable::run | ( | ) | [inline, virtual] |
Definition at line 66 of file qblockrunnable.h.