I want to put assertions in my code like "must not have writer lock here".
It is crucial to know what lock is held in a certain situation.
When I apply attributes (Reader, Writer, ExplicitlySynchronized, Yielder) I make assumptions on what they will do, but there is no way to check my assumptions.
I tried using the IConcurrencyController.CheckAccess method, but it does not do what I need.2 votes
- Don't see your idea?