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

Method unblock

kernel/orbis/src/KernelContext.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141void Thread::where() { tproc->ops->where(this); }
142
143bool Thread::unblock() {
144 std::uint32_t prev = interruptedMtx.exchange(0, std::memory_order::relaxed);
145 if (prev != 0) {
146 interruptedMtx.notify_one();
147 return false;
148 }
149
150 tproc->ops->unblock(this);
151
152 return true;
153}
154
155bool Thread::block() {
156 tproc->ops->block(this);

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