-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assert that holders are added to sessions only with the Matter lock h…
…eld. Adding/removing holders manipulates circular lists, and if we end up with data races on these manipulations we can end up in bad states. Since sessions are somewhat singleton resources, and the "hold on to a session" operation is pretty hidden in many cases, it's easy to end up with a situation where a session is being pointed to by objects being manipulated on multiple threads and hard to catch this via manual code inspection.
- Loading branch information
1 parent
776c06d
commit 692ba08
Showing
3 changed files
with
4 additions
and
3 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