#include <tjthread.h>
Inherited by ThreadedLoop< In, Out >::WorkThread.
Public Member Functions | |
| Thread () | |
| bool | start (unsigned int stack_size=0) |
| bool | wait () |
| virtual void | run ()=0 |
Static Public Member Functions | |
| static int | self () |
Definition at line 163 of file tjthread.h.
| Thread::Thread | ( | ) |
Constructs thread object with the given label.
| bool Thread::start | ( | unsigned int | stack_size = 0 |
) |
Starts the thread. 'stack_size' is used as the threads stack size if not zero (in which case the systems default stack size is used). Returns 'true' only on sucess.
| bool Thread::wait | ( | ) |
Waits for the thread to finish. Returns 'true' only on sucess.
| virtual void Thread::run | ( | ) | [pure virtual] |
Implement to run threads execution path.
| static int Thread::self | ( | ) | [static] |
Returns thread-unique ID of the current thread.
1.5.6