MCPcopy Create free account
hub / github.com/decaf-emu/decaf-emu / wait

Function wait

src/libgpu/src/gpu_ringbuffer.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool
43wait()
44{
45 std::unique_lock<std::mutex> lock { sMutex };
46 if (mWriteVector.empty() && !sPendingWake) {
47 sConditionVariable.wait(lock);
48 }
49
50 sPendingWake = false;
51
52 return !mWriteVector.empty();
53}
54
55void
56wake()

Callers 3

runMethod · 0.85
runMethod · 0.85
runUntilFlipMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected