#include "Thread.h" #include "iostream.h" void* Thread::starter(void* thread){ Thread* t = (Thread*) thread; if (t != 0) { t->run(); } pthread_exit(0); } void Thread::start(){ pthread_create(&tid, 0, &starter, this); }