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

Function connection_interrupted

src/ui/httpd.c:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static bool connection_interrupted(cbm_http_conn_t *connection) {
153 cbm_httpd_t *owner = connection->owner;
154 if (!owner)
155 return false;
156 cbm_mutex_lock(&owner->active_mutex);
157 bool interrupted = owner->interrupted;
158 cbm_mutex_unlock(&owner->active_mutex);
159 return interrupted;
160}
161
162/* Wait against the caller's absolute deadline. Windows uses short select()
163 * slices because shutdown() from the stop thread does not reliably wake a

Callers 1

wait_connection_readyFunction · 0.85

Calls 2

cbm_mutex_lockFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected