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

◆ RecursiveWriteCount

int System.Threading.ReaderWriterLockSlim.RecursiveWriteCount
get

Definition at line 349 of file ReaderWriterLockSlim.cs.

350 {
351 get
352 {
353 if (_fIsReentrant)
354 {
355 int result = 0;
356 ReaderWriterCount threadRWCount = GetThreadRWCount(dontAllocate: true);
357 if (threadRWCount != null)
358 {
359 result = threadRWCount.writercount;
360 }
361 return result;
362 }
363 if (Environment.CurrentManagedThreadId == _writeLockOwnerId)
364 {
365 return 1;
366 }
367 return 0;
368 }
369 }
ReaderWriterCount GetThreadRWCount(bool dontAllocate)