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

Function aeLockContention

src/ae.cpp:908–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908int aeLockContention()
909{
910 ticket ticketT;
911 __atomic_load(&g_lock.m_ticket.u, &ticketT.u, __ATOMIC_RELAXED);
912 int32_t avail = ticketT.m_avail;
913 int32_t active = ticketT.m_active;
914 if (avail < active)
915 avail += 0x10000;
916 return avail - active;
917}
918
919void aeClosePipesForForkChild(aeEventLoop *el)
920{

Callers 5

databasesCronFunction · 0.85
serverCronFunction · 0.85
genRedisInfoStringFunction · 0.85
acceptTLSHandlerFunction · 0.85
readQueryFromClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected