From 7fb136890c9b85917d4db93db143f5825cdb33f8 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 18 Jun 2010 17:21:54 +0000 Subject: [PATCH] - another attempt to have thread stability --- source/shared_lib/sources/platform/common/base_thread.cpp | 2 +- source/shared_lib/sources/platform/sdl/thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/common/base_thread.cpp b/source/shared_lib/sources/platform/common/base_thread.cpp index 53cd5f854..4ecf7787a 100644 --- a/source/shared_lib/sources/platform/common/base_thread.cpp +++ b/source/shared_lib/sources/platform/common/base_thread.cpp @@ -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); diff --git a/source/shared_lib/sources/platform/sdl/thread.cpp b/source/shared_lib/sources/platform/sdl/thread.cpp index 2871a3417..ef58783f5 100644 --- a/source/shared_lib/sources/platform/sdl/thread.cpp +++ b/source/shared_lib/sources/platform/sdl/thread.cpp @@ -25,7 +25,7 @@ Thread::Thread() { Thread::~Thread() { if(thread != NULL) { - SDL_WaitThread(thread, NULL); + //SDL_WaitThread(thread, NULL); } }