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

Function aeLockContested

src/ae.cpp:901–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901int aeLockContested(int threshold)
902{
903 ticket ticketT;
904 __atomic_load(&g_lock.m_ticket.u, &ticketT.u, __ATOMIC_RELAXED);
905 return ticketT.m_active < static_cast<uint16_t>(ticketT.m_avail - threshold);
906}
907
908int aeLockContention()
909{

Callers 1

parseClientCommandBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected