-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialog: Change dlg->vals locking to be independent
By making the dlg->vals locking independent from the dialog hash lock, working with the dialog API will become less prone to AB/BA deadlocks. Sample possible AB/BA deadlock which is now naturally avoided: * module "X" timer grabs lock-A, then gets stuck trying to grab lock-B(dialog bucket) through some innocent .store_dlg_val() dialog API call * dialog DB timer had grabbed lock-B(dialog bucket), and is now stuck grabbing lock-A while running a DLGCB_DESTROYED callback installed by module "X"
- Loading branch information
1 parent
3fb2c35
commit ad6aef0
Showing
8 changed files
with
185 additions
and
92 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
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
Oops, something went wrong.