MCPcopy Create free account
hub / github.com/F-Stack/f-stack / afterSleep

Function afterSleep

app/redis-6.2.6/src/server.c:2470–2479  ·  view source on GitHub ↗

This function is called immediately after the event loop multiplexing * API returned, and the control is going to soon return to Redis by invoking * the different events callbacks. */

Source from the content-addressed store, hash-verified

2468 * API returned, and the control is going to soon return to Redis by invoking
2469 * the different events callbacks. */
2470void afterSleep(struct aeEventLoop *eventLoop) {
2471 UNUSED(eventLoop);
2472
2473 /* Do NOT add anything above moduleAcquireGIL !!! */
2474
2475 /* Aquire the modules GIL so that their threads won't touch anything. */
2476 if (!ProcessingEventsWhileBlocked) {
2477 if (moduleCount()) moduleAcquireGIL();
2478 }
2479}
2480
2481/* =========================== Server initialization ======================== */
2482

Callers

nothing calls this directly

Calls 2

moduleCountFunction · 0.85
moduleAcquireGILFunction · 0.85

Tested by

no test coverage detected