Skip to content
Snippets Groups Projects
Commit 6d017f88 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Avoid problematic this_thread::sleep

parent 7bcfe9db
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -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));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment