Changed: Use nlSleep instead of usleep

This commit is contained in:
kervala 2015-12-23 15:08:08 +01:00
parent 6544d736b9
commit d4bfdfe61f

View file

@ -293,12 +293,7 @@ public:
if (!atomic_swap (&_Lock)) if (!atomic_swap (&_Lock))
break; break;
#ifdef NL_OS_WINDOWS
nlSleep (wait_time); 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)) if (!CFastMutex::atomic_swap (&_Lock))
break; break;
#ifdef NL_OS_WINDOWS
nlSleep (wait_time); nlSleep (wait_time);
#else
//std::cout << "Sleeping i=" << i << std::endl;
usleep( wait_time*1000 );
#endif
} }
} }
} }