-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deadlocks in pause(), resume() and toggle_paused() methods
- Removed mutex lock in pause(), resume() and toggle_paused() methods and use only atomic value change for `paused_` variable. - Renamed `state_transition_mutex_` to the `start_stop_transition_mutex_`. - Add unit test for `toggle_paused()` Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
- Loading branch information
1 parent
4fba7a4
commit d788074
Showing
2 changed files
with
31 additions
and
16 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