Beispiel #1
0
DWORD WINAPI Win32LaunchThread(LPVOID data) {
	Threaded *threaded = (Threaded*)data;
	threaded->runThread();
	return 1;
}
Beispiel #2
0
void *AGLThreadFunc(void *data) {
	Threaded *target = static_cast<Threaded*>(data);
	target->runThread();
	return NULL;
}
Beispiel #3
0
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;
}