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

Function LightEvent_Pulse

libctru/source/synchronization.c:277–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void LightEvent_Pulse(LightEvent* event)
278{
279 if (event->state == CLEARED_STICKY)
280 syncArbitrateAddress(&event->state, ARBITRATION_SIGNAL, -1);
281 else if (event->state == CLEARED_ONESHOT)
282 syncArbitrateAddress(&event->state, ARBITRATION_SIGNAL, 1);
283 else
284 LightEvent_Clear(event);
285}
286
287void LightEvent_Signal(LightEvent* event)
288{

Callers

nothing calls this directly

Calls 2

syncArbitrateAddressFunction · 0.85
LightEvent_ClearFunction · 0.85

Tested by

no test coverage detected