1 write to _hierarchyLock
System.Configuration (1)
System\Configuration\Internal\InternalConfigRoot.cs (1)
51
_hierarchyLock
= new ReaderWriterLock();
14 references to _hierarchyLock
System.Configuration (14)
System\Configuration\Internal\InternalConfigRoot.cs (14)
82
Debug.Assert(!
_hierarchyLock
.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld");
83
if (
_hierarchyLock
.IsReaderLockHeld) {
87
Debug.Assert(!
_hierarchyLock
.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld");
88
if (
_hierarchyLock
.IsWriterLockHeld) {
92
_hierarchyLock
.AcquireReaderLock(-1);
96
Debug.Assert(!
_hierarchyLock
.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld");
98
if (
_hierarchyLock
.IsReaderLockHeld) {
99
_hierarchyLock
.ReleaseReaderLock();
107
if (
_hierarchyLock
.IsReaderLockHeld) {
111
if (
_hierarchyLock
.IsWriterLockHeld) {
115
_hierarchyLock
.AcquireWriterLock(-1);
119
Debug.Assert(!
_hierarchyLock
.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld");
121
if (
_hierarchyLock
.IsWriterLockHeld) {
122
_hierarchyLock
.ReleaseWriterLock();