-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is a mutex and a counter to allow only one thread at a time. There is no need for the 'active' counter as mutex guaranties that! Since other threads just bail out without waiting for the lock, we could simply use an atomic operation instead of a mutex here.
- Loading branch information
Malahal Naineni
committed
Apr 22, 2019
1 parent
52bb2d5
commit a588e51
Showing
1 changed file
with
11 additions
and
14 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