21 #ifndef WIBBLE_SYS_THREAD_H
22 #define WIBBLE_SYS_THREAD_H
41 void sleep(
int secs );
110 static void* Starter(
void* parm);
114 static unsigned __stdcall Starter(
void* parm);
138 void kill(
int signal);
Encapsulates a thread.
Definition: thread.h:84
virtual const char * threadTag()
Short tag describing this thread, used in error messages and identification.
Definition: thread.h:100
void cancel()
Send a cancellation request to the thread.
Definition: thread.cpp:133
void testcancel()
Callback function used to start the thread.
Definition: thread.cpp:63
virtual ~Thread()
Definition: thread.h:120
void startDetached()
Start the thread in the detached state.
Definition: thread.cpp:87
void * join()
Join the thread.
Definition: thread.cpp:100
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.
void detach()
Put the thread in the detached state.
Definition: thread.cpp:124
void sleep(int secs)
Portable version of sleep.
Definition: thread.cpp:31
void usleep(int usecs)
Portable version of usleep.
Definition: thread.cpp:39