mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 15:39:21 +02:00
- attempt to make TOM happy, clickl madly while game is loading and help lame windows not choke
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user