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

Function gxCmdQueueWait

libctru/source/gpu/gxqueue.c:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool gxCmdQueueWait(gxCmdQueue_s* queue, s64 timeout)
108{
109 u64 deadline = U64_MAX;
110 if (timeout >= 0)
111 deadline = svcGetSystemTick() + timeout;
112 while (isRunning)
113 {
114 if (timeout >= 0 && (s64)(u64)(svcGetSystemTick()-deadline) >= 0)
115 return false;
116 gspWaitForAnyEvent();
117 }
118 return true;
119}

Callers

nothing calls this directly

Calls 1

gspWaitForAnyEventFunction · 0.85

Tested by

no test coverage detected