cwidget
0.5.16
|
A system thread. More...
#include <threads.h>
Classes | |
class | attr |
Stores the attributes with which a thread is to be created. More... | |
Public Member Functions | |
throw | ThreadCreateException (errnum) |
void | join () |
Wait for this thread to finish. More... | |
void | cancel () |
Cancel this thread. More... | |
Public Attributes | |
template<typename F > | |
__pad0__:joined(false) { F *tmp = new F(thunk) | |
Create a new thread. More... | |
delete | tmp |
A system thread.
This class represents a single thread of control. It is conceptually based on the Boost thread class; like the Boost thread class, it is non-copyable.
|
inline |
Cancel this thread.
|
inline |
Wait for this thread to finish.
cwidget::threads::thread::__pad0__ |
Create a new thread.
The new thread will begin execution by calling operator() on a copy of the given function object.
thunk | a function object of no parameters that will be invoked to start this thread. Must be copyable. |
a | the attributes with which to create the new thread. |
delete cwidget::threads::thread::tmp |