MCPcopy Create free account
hub / github.com/acl-dev/acl / main_stop_servers

Function main_stop_servers

lib_fiber/cpp/src/fiber_server.cpp:337–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337static void main_stop_servers()
338{
339 static int dummy;
340 int i;
341
342 if (__server_stopping || __servers == NULL) {
343 return;
344 }
345
346 __server_stopping = 1;
347
348 for (i = 0; __servers[i] != NULL; i++) {
349 (void) acl_mbox_send(__servers[i]->in, &dummy);
350 (void) acl_mbox_read(__servers[i]->out, -1, NULL);
351 }
352}
353
354static void main_free_servers()
355{

Callers 3

main_fiber_monitor_usedFunction · 0.85
main_fiber_monitor_idleFunction · 0.85

Calls 1

acl_mbox_sendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…