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

Function LightEvent_Clear

libctru/source/synchronization.c:262–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void LightEvent_Clear(LightEvent* event)
263{
264 if (event->state == SIGNALED_STICKY)
265 {
266 LightLock_Lock(&event->lock);
267 LightEvent_SetState(event, CLEARED_STICKY);
268 LightLock_Unlock(&event->lock);
269 } else if (event->state == SIGNALED_ONESHOT)
270 {
271 __dmb();
272 LightEvent_SetState(event, CLEARED_ONESHOT);
273 __dmb();
274 }
275}
276
277void LightEvent_Pulse(LightEvent* event)
278{

Callers 4

LightEvent_PulseFunction · 0.85
ndspSyncFunction · 0.85
gspWaitForEventFunction · 0.85
aptReceiveParameterFunction · 0.85

Calls 4

LightLock_LockFunction · 0.85
LightEvent_SetStateFunction · 0.85
LightLock_UnlockFunction · 0.85
__dmbFunction · 0.85

Tested by

no test coverage detected