DWORD WINAPI Win32LaunchThread(LPVOID data) { Threaded *threaded = (Threaded*)data; threaded->runThread(); return 1; }
void *AGLThreadFunc(void *data) { Threaded *target = static_cast<Threaded*>(data); target->runThread(); return NULL; }
int SDLThreadFunc(void *data) { Threaded *target = (Threaded*)data; target->runThread(); return 1; }
void * Threaded::start_routine( void * arg) { Threaded * r = (Threaded *) arg; void * result; result = r->run(); return result; }