-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable spin polling via a zero microsecond wait between lulls
Summary: Dispenso's scheduling mechanism works roughly like this. Loop until it is time to tear down the thread pool. Inside that loop, grab work as long as there is work, and when we run out of work for some time, we yield for some time to the OS. There are two variants of this, but those details are unimportant to this change. In this change, if the yield time is set to zero, we will now no longer sleep. This could be important for very latency critical cases, but should likely be used only with thread pools that do not dominate all hardware threads in the system to keep the OS and program moving smoothly. Reviewed By: CalebVR Differential Revision: D50331611 fbshipit-source-id: 781a9f24246ed7de759b3168f9d618d9a31efe7a
- Loading branch information
1 parent
dd4581e
commit d31040c
Showing
2 changed files
with
96 additions
and
38 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
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