| 906 | } |
| 907 | |
| 908 | int 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 | |
| 919 | void aeClosePipesForForkChild(aeEventLoop *el) |
| 920 | { |
no outgoing calls
no test coverage detected