-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Semaphore using pthreads on Linux and grand central dispa…
…tch on mac (#1462) This generates a lot less stalls than the mutex/condition_variable construct. Semaphore::Release goes from 30 us per call to 1 us per call. Especially on Linux this speeds up the PerformanceTest by 5-20% at higher thread counts.
- Loading branch information
Showing
2 changed files
with
71 additions
and
24 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