- attempt to make TOM happy, clickl madly while game is loading and help lame windows not choke

This commit is contained in:
Mark Vejvoda
2010-06-17 06:55:35 +00:00
parent eeda623b4f
commit b2f91e0f32
8 changed files with 70 additions and 5 deletions

View File

@@ -19,6 +19,15 @@ namespace Shared{ namespace Platform{
// =====================================
// Threads
// =====================================
Thread::Thread() {
thread = NULL;
}
Thread::~Thread() {
if(thread != NULL) {
SDL_WaitThread(thread, NULL);
}
}
void Thread::start() {
thread = SDL_CreateThread(beginExecution, this);