diff --git a/indra/llcommon/llmutex.h b/indra/llcommon/llmutex.h index ed8deab464735781eb8d6c8969646d2c2a9118a5..3757093ab0c24254f28a9f39f1bb72a7af6a2659 100644 --- a/indra/llcommon/llmutex.h +++ b/indra/llcommon/llmutex.h @@ -29,6 +29,7 @@ #include "stdtypes.h" #include "llthread.h" +#include "lltimer.h" #include <mutex> #include <condition_variable> @@ -209,7 +210,8 @@ class LLMutexTrylock mLocked = mMutex->try_lock(); if (mLocked) break; - std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); + ms_sleep(delay_ms); + //std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); } } }