21 #ifndef WIBBLE_SYS_THREAD_H 22 #define WIBBLE_SYS_THREAD_H 41 void sleep(
int secs );
106 virtual void*
main() = 0;
110 static void* Starter(
void* parm);
114 static unsigned __stdcall Starter(
void* parm);
138 void kill(
int signal);
void detach()
Put the thread in the detached state.
Definition: thread.cpp:124
void start()
Start the thread.
Definition: thread.cpp:70
void kill(int signal)
Sent a signal to the thread.
Definition: thread.cpp:142
virtual void * main()=0
Main thread function, executed in the new thread after creation.
virtual const char * threadTag()
Short tag describing this thread, used in error messages and identification.
Definition: thread.h:100
void sleep(int secs)
Portable version of sleep.
Definition: thread.cpp:31
Encapsulates a thread.
Definition: thread.h:83
void cancel()
Send a cancellation request to the thread.
Definition: thread.cpp:133
void * join()
Join the thread.
Definition: thread.cpp:100
void startDetached()
Start the thread in the detached state.
Definition: thread.cpp:87
virtual ~Thread()
Definition: thread.h:120
void usleep(int usecs)
Portable version of usleep.
Definition: thread.cpp:39
void testcancel()
Callback function used to start the thread.
Definition: thread.cpp:63