forked from arkq/bluez-alsa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix thread safety for IO threads stopping
We can not request transport IO threads stopping from more than one thread at the same time. This will result in more than one cancel threads request being queued in the thread manager, which in turn may lead to premature thread termination in case when IO thread is stopped and started right away. This commit adds IO threads stopping synchronization on the transport level by using the stopping flag.
- Loading branch information
Showing
2 changed files
with
62 additions
and
33 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