| 899 | } |
| 900 | |
| 901 | int 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 | |
| 908 | int aeLockContention() |
| 909 | { |
no outgoing calls
no test coverage detected