Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.17.0
-
None
Description
Currently when an action is queued for the core to process, the queuing code calls pthread_cond_signal() while holding the associated mutex. This can cause the core thread to be woken then immediately put sleep while taking the mutex.
It is legal to call pthread_cond_signal() without holding the lock. Doing this will avoid contention on the associated mutex.