MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / win_pending_wait

Function win_pending_wait

src/daemon/ipc.c:6321–6328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6319} win_pending_io_t;
6320
6321static 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
6330static void win_pending_cancel(void *opaque) {
6331 win_pending_io_t *pending = (win_pending_io_t *)opaque;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected