MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __OSUnlockAllMutex

Function __OSUnlockAllMutex

src/dolphin/src/os/OSMutex.c:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 } while (0)
51
52void __OSUnlockAllMutex(OSThread* thread)
53{
54 OSMutex* mutex;
55
56 while (thread->queueMutex.head)
57 {
58 PopHead(&thread->queueMutex, mutex, link);
59 mutex->count = 0;
60 mutex->thread = NULL;
61 OSWakeupThread(&mutex->queue);
62 }
63}

Callers 1

OSCancelThreadFunction · 0.85

Calls 1

OSWakeupThreadFunction · 0.85

Tested by

no test coverage detected