-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The origin version cannot guarantee all the thread starting kecho task at the same time. Because the main thread may acquire mutex lock before all the bench_worker have acquire it. Change the barrier condition by using counting: - Change condition variable to int n_retry for counting - The worker acquire lock to add up the counting and wait - The last worker reach the condition and broadcast the message
- Loading branch information
1 parent
c678908
commit b31459c
Showing
1 changed file
with
11 additions
and
17 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