MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / block

Method block

kernel/orbis/src/KernelContext.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool Thread::block() {
156 tproc->ops->block(this);
157
158 std::uint32_t prev = interruptedMtx.exchange(0, std::memory_order::relaxed);
159 if (prev != 0) {
160 interruptedMtx.notify_one();
161 }
162
163 return prev == 0;
164}
165
166scoped_unblock::scoped_unblock() {
167 if (g_currentThread && g_currentThread->context) {

Callers 3

handleSigUserFunction · 0.80
scoped_unblockMethod · 0.80
~scoped_unblock_nowMethod · 0.80

Calls 2

exchangeMethod · 0.45
notify_oneMethod · 0.45

Tested by

no test coverage detected