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