#include <ThreadPT.hxx>

Public Types | |
| typedef void *(* | ThreadJob) (void *) |
Public Member Functions | |
| ThreadPT () | |
| ThreadPT (ThreadJob funcPtr, void *stack, size_t stackSize=0) | |
| void | go (ThreadJob funcPtr, void *stack, size_t stackSize=0) |
| bool | operator== (const ThreadPT &other) |
| void | join () |
Static Public Member Functions | |
| static void | detach () |
| Detach thread to release resources on exit. More... | |
| static void | exit (void *what) |
| static void | sleep (unsigned long usec) |
Private Attributes | |
| pthread_t | _threadId |
Definition at line 31 of file ThreadPT.hxx.
| typedef void *(* YACS::BASES::ThreadPT::ThreadJob) (void *) |
Definition at line 34 of file ThreadPT.hxx.
| ThreadPT::ThreadPT | ( | ) |
Definition at line 31 of file ThreadPT.cxx.
| ThreadPT::ThreadPT | ( | ThreadJob | funcPtr, |
| void * | stack, | ||
| size_t | stackSize = 0 |
||
| ) |
Definition at line 35 of file ThreadPT.cxx.
References go().
|
static |
Detach thread to release resources on exit.
Definition at line 62 of file ThreadPT.cxx.
|
static |
Definition at line 67 of file ThreadPT.cxx.
| void ThreadPT::go | ( | ThreadJob | funcPtr, |
| void * | stack, | ||
| size_t | stackSize = 0 |
||
| ) |
Definition at line 40 of file ThreadPT.cxx.
References _threadId.
Referenced by ThreadPT().
| void ThreadPT::join | ( | ) |
Definition at line 72 of file ThreadPT.cxx.
References _threadId.
| bool ThreadPT::operator== | ( | const ThreadPT & | other | ) |
Definition at line 56 of file ThreadPT.cxx.
References _threadId.
|
static |
Definition at line 78 of file ThreadPT.cxx.
|
private |
Definition at line 45 of file ThreadPT.hxx.
Referenced by go(), join(), and operator==().