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

Function LightEvent_SetState

libctru/source/synchronization.c:234–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232};
233
234static inline void LightEvent_SetState(LightEvent* event, int state)
235{
236 do
237 __ldrex(&event->state);
238 while (__strex(&event->state, state));
239}
240
241static inline int LightEvent_TryReset(LightEvent* event)
242{

Callers 3

LightEvent_InitFunction · 0.85
LightEvent_ClearFunction · 0.85
LightEvent_SignalFunction · 0.85

Calls 2

__ldrexFunction · 0.85
__strexFunction · 0.85

Tested by

no test coverage detected