mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- another attempt to have thread stability
This commit is contained in:
parent
60c6848832
commit
7fb136890c
@ -100,7 +100,7 @@ void BaseThread::shutdownAndWait(BaseThread *pThread) {
|
||||
sleep(1);
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
}
|
||||
sleep(1);
|
||||
//sleep(0);
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
}
|
||||
sleep(0);
|
||||
|
@ -25,7 +25,7 @@ Thread::Thread() {
|
||||
|
||||
Thread::~Thread() {
|
||||
if(thread != NULL) {
|
||||
SDL_WaitThread(thread, NULL);
|
||||
//SDL_WaitThread(thread, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user