aswang
1.0
|
Template class which spawns a thread and executes a function on a given class pointer. More...
#include <ThreadFunc.h>
Classes | |
struct | func_arg |
struct | func_base |
struct | func_noarg |
Public Member Functions | |
ThreadFunc (Class *c, void(Class::*p)()) | |
ThreadFunc (Class *c, void(Class::*p)(Arg), Arg a=0) | |
~ThreadFunc () | |
void | operator() () |
void | operator() (Arg p) |
Template class which spawns a thread and executes a function on a given class pointer.
The called member function may optionally take one argument determined by the second template parameter. All "ThreadFuncs" return void.
Definition at line 37 of file ThreadFunc.h.
aswang::ThreadFunc< Class, Arg >::ThreadFunc | ( | Class * | c, |
void(Class::*)() | p | ||
) | [inline] |
Definition at line 90 of file ThreadFunc.h.
aswang::ThreadFunc< Class, Arg >::ThreadFunc | ( | Class * | c, |
void(Class::*)(Arg) | p, | ||
Arg | a = 0 |
||
) | [inline] |
Definition at line 91 of file ThreadFunc.h.
aswang::ThreadFunc< Class, Arg >::~ThreadFunc | ( | ) | [inline] |
Definition at line 92 of file ThreadFunc.h.
void aswang::ThreadFunc< Class, Arg >::operator() | ( | ) | [inline] |
Definition at line 96 of file ThreadFunc.h.
void aswang::ThreadFunc< Class, Arg >::operator() | ( | Arg | p | ) | [inline] |
Definition at line 101 of file ThreadFunc.h.