mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 08:54:59 +00:00
[unittests] ThreadPool: Remove redundant loop, NFC
llvm-svn: 256097
This commit is contained in:
parent
1060fa635e
commit
f2199d9e59
@ -57,10 +57,8 @@ protected:
|
||||
|
||||
/// Make sure this thread not progress faster than the main thread.
|
||||
void waitForMainThread() {
|
||||
while (!MainThreadReady) {
|
||||
std::unique_lock<std::mutex> LockGuard(WaitMainThreadMutex);
|
||||
WaitMainThread.wait(LockGuard, [&] { return MainThreadReady; });
|
||||
}
|
||||
std::unique_lock<std::mutex> LockGuard(WaitMainThreadMutex);
|
||||
WaitMainThread.wait(LockGuard, [&] { return MainThreadReady; });
|
||||
}
|
||||
|
||||
/// Set the readiness of the main thread.
|
||||
|
Loading…
x
Reference in New Issue
Block a user