| 6319 | } win_pending_io_t; |
| 6320 | |
| 6321 | static cbm_ipc_pending_wait_status_t win_pending_wait(void *opaque, uint32_t timeout_ms) { |
| 6322 | win_pending_io_t *pending = (win_pending_io_t *)opaque; |
| 6323 | DWORD result = WaitForSingleObject(pending->overlapped->hEvent, timeout_ms); |
| 6324 | if (result == WAIT_OBJECT_0) { |
| 6325 | return CBM_IPC_PENDING_WAIT_SIGNALED; |
| 6326 | } |
| 6327 | return result == WAIT_TIMEOUT ? CBM_IPC_PENDING_WAIT_TIMEOUT : CBM_IPC_PENDING_WAIT_FAILED; |
| 6328 | } |
| 6329 | |
| 6330 | static void win_pending_cancel(void *opaque) { |
| 6331 | win_pending_io_t *pending = (win_pending_io_t *)opaque; |
nothing calls this directly
no outgoing calls
no test coverage detected