MCPcopy Create free account
hub / github.com/devkitPro/libctru / CondVar_BeginWait

Function CondVar_BeginWait

libctru/source/synchronization.c:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157static inline void CondVar_BeginWait(CondVar* cv, LightLock* lock)
158{
159 s32 val;
160 do
161 val = __ldrex(cv) - 1;
162 while (__strex(cv, val));
163 LightLock_Unlock(lock);
164}
165
166static inline bool CondVar_EndWait(CondVar* cv, s32 num_threads)
167{

Callers 2

CondVar_WaitFunction · 0.85
CondVar_WaitTimeoutFunction · 0.85

Calls 3

__ldrexFunction · 0.85
__strexFunction · 0.85
LightLock_UnlockFunction · 0.85

Tested by

no test coverage detected