From d4bfdfe61fa8f2785bd664973ef1c81109d7eade Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 23 Dec 2015 15:08:08 +0100 Subject: [PATCH] Changed: Use nlSleep instead of usleep --- code/nel/include/nel/misc/mutex.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/code/nel/include/nel/misc/mutex.h b/code/nel/include/nel/misc/mutex.h index cb7e9a188..ec9c89ceb 100644 --- a/code/nel/include/nel/misc/mutex.h +++ b/code/nel/include/nel/misc/mutex.h @@ -293,12 +293,7 @@ public: if (!atomic_swap (&_Lock)) break; -#ifdef NL_OS_WINDOWS nlSleep (wait_time); -#else - //std::cout << "Sleeping i=" << i << std::endl; - usleep( wait_time*1000 ); -#endif } } } @@ -401,12 +396,7 @@ public: if (!CFastMutex::atomic_swap (&_Lock)) break; -#ifdef NL_OS_WINDOWS nlSleep (wait_time); -#else - //std::cout << "Sleeping i=" << i << std::endl; - usleep( wait_time*1000 ); -#endif } } }