XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
QBlockRunnable Class Reference

Provides a QRunnable Implementation for use with blocks on clang or lambda functions in C++0x. More...

#include <QtDispatch/qblockrunnable.h>

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void QBlockRunnable::run ( ) [inline, virtual]

Definition at line 66 of file qblockrunnable.h.


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

Generated on Tue Jun 12 2012 14:11:48 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.