This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coreav): avoid deadlock between CoreAV, main and Audio thread
This actually fixes two problems: 1) CoreAV and Audio thread both locked the callsLock and audioLock in different orders, resulting in a deadlock of both threads. This fixed by using a ReadWriteLock in the CoreAV thread. 2) Multiple functions were emitting signals while holding a lock. This is unsafe, because the connected slot may acquire any other lock. This is fixed by releasing the locks before emitting signals. (cherry picked from commit 4b9e4a5)
- Loading branch information
1 parent
a4ac6d6
commit 723a8e5
Showing
2 changed files
with
39 additions
and
31 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