-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use atomic counter to calculate guaranteed number of idling threads
MultiThreadAgent.run needs to know how many tasks can start immediately. But it doesn't have to be exact number. It is OK to acquire smaller number as long as it can start the tasks immediately.
- Loading branch information
Showing
1 changed file
with
30 additions
and
26 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