MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / Wait

Method Wait

deps/LLGL/sources/Core/Barrier.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void Barrier::Wait()
22{
23 std::unique_lock<std::mutex> lock { mutex_ };
24
25 if (--counter_ == 0)
26 {
27 counter_ = threadCount_;
28 var_.notify_all();
29 }
30 else
31 var_.wait(lock, [this]{ return (counter_ == threadCount_); });
32}
33
34
35} // /namespace LLGL

Callers 1

SDL_FS_WaitDeviceFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected