-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use condition variable in NIOThreadPool (#2964)
Motivation: The thread performance checker warns that a threads with QoS are waiting on threads in the NIOThreadPool. We can avoid these warnings by using a condition variable instead. Modifications: - Replace the usage of a semaphore and lock in NIOThreadPool with a condition lock. - The condition value indicates whether the threads have work to do (where work is processing work items or exiting their run loop). Result: - Fewer warnings - Resolves #2960
- Loading branch information
Showing
1 changed file
with
141 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters