1 #include <lib/base/thread.h>
3 #include <lib/base/eerror.h>
5 void *eThread::wrapper(void *ptr)
7 ((eThread*)ptr)->thread();
19 pthread_create(&the_thread, 0, wrapper, this);
31 eDebug("waiting for thread shutdown");
32 pthread_join(the_thread, 0);
36 void eThread::sendSignal(int sig)
39 pthread_kill(the_thread, sig);