-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support specifying worker thread affinities
Add `Thread::Affinity` which describes the cores on which a thread can execute. Add `Thread::Affinity::Policy` which generates an `Affinity` for a thread by identifier. `Policy` contains two helper functions that return `Policy` implementations: * `anyOf()` returns a `Policy` that returns an Affinity for the available cores in the `Affinity` passed to the function. * `oneOf()` returns a `Policy` that returns an affinity with a single enabled core from the `Affinity` passed to the function. Other `Policy`s can be implemented by the user. Add a new `affinityPolicy` field to `Scheduler::Config` allowing the user to specify the rules for assigning thread affinities to each scheduler worker thread. Affinities are currently only supported on windows, linux and freebsd. Issue: #136
- Loading branch information
1 parent
49fe9a1
commit 325b072
Showing
8 changed files
with
499 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
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
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
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
Oops, something went wrong.