MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / aeDeleteFileEventAsync

Function aeDeleteFileEventAsync

src/ae.cpp:449–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void aeDeleteFileEventAsync(aeEventLoop *eventLoop, int fd, int mask)
450{
451 if (eventLoop == g_eventLoopThisThread)
452 return aeDeleteFileEvent(eventLoop, fd, mask);
453 aeCommand cmd = {};
454 cmd.op = AE_ASYNC_OP::DeleteFileEvent;
455 cmd.fd = fd;
456 cmd.mask = mask;
457 cmd.fLock = true;
458 auto cb = write(eventLoop->fdCmdWrite, &cmd, sizeof(cmd));
459 serverAssert(cb == sizeof(cmd));
460}
461
462extern "C" void aeDeleteFileEvent(aeEventLoop *eventLoop, int fd, int mask)
463{

Callers 1

aofClosePipesFunction · 0.85

Calls 1

aeDeleteFileEventFunction · 0.85

Tested by

no test coverage detected