| 105 | } |
| 106 | |
| 107 | bool 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 | } |
nothing calls this directly
no test coverage detected