Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose() [2/2]

void System.Threading.ReaderWriterLockSlim.Dispose ( bool disposing)
inlineprivate

Definition at line 1200 of file ReaderWriterLockSlim.cs.

1201 {
1202 if (disposing && !_fDisposed)
1203 {
1205 {
1206 throw new SynchronizationLockException(SR.SynchronizationLockException_IncorrectDispose);
1207 }
1209 {
1210 throw new SynchronizationLockException(SR.SynchronizationLockException_IncorrectDispose);
1211 }
1212 if (_writeEvent != null)
1213 {
1215 _writeEvent = null;
1216 }
1217 if (_readEvent != null)
1218 {
1220 _readEvent = null;
1221 }
1222 if (_upgradeEvent != null)
1223 {
1225 _upgradeEvent = null;
1226 }
1227 if (_waitUpgradeEvent != null)
1228 {
1230 _waitUpgradeEvent = null;
1231 }
1232 _fDisposed = true;
1233 }
1234 }
virtual void Dispose(bool explicitDisposing)

References System.Threading.ReaderWriterLockSlim._fDisposed, System.Threading.ReaderWriterLockSlim._readEvent, System.Threading.ReaderWriterLockSlim._upgradeEvent, System.Threading.ReaderWriterLockSlim._waitUpgradeEvent, System.Threading.ReaderWriterLockSlim._writeEvent, System.Threading.WaitHandle.Dispose(), System.Threading.ReaderWriterLockSlim.IsReadLockHeld, System.Threading.ReaderWriterLockSlim.IsUpgradeableReadLockHeld, System.Threading.ReaderWriterLockSlim.IsWriteLockHeld, System.SR.SynchronizationLockException_IncorrectDispose, System.Threading.ReaderWriterLockSlim.WaitingReadCount, System.Threading.ReaderWriterLockSlim.WaitingUpgradeCount, and System.Threading.ReaderWriterLockSlim.WaitingWriteCount.