C# 클래스 System.Threading.ReaderWriterLock.ThreadLocalLockEntry

Stores thread-local lock info and manages the association of this info with each ReaderWriterLock owned by a thread. The original code maintained lists of thread-local lock entries on the CLR's thread objects, and manually released lock entries, which involved walking through all threads. While this is possible with ThreadLocal, this implementation prefers to use a similar design to that from ReaderWriterLockSlim, and allow reusing free entries without removing entries, since it is unlikely that the list length for any thread would get unreasonably long.
파일 보기 프로젝트 열기: dotnet/corefx

공개 프로퍼티들

프로퍼티 타입 설명
_readerLevel ushort

공개 메소드들

메소드 설명
GetCurrent ( long lockID ) : ThreadLocalLockEntry
GetOrCreateCurrent ( long lockID ) : ThreadLocalLockEntry
HasLockID ( long lockID ) : bool

비공개 메소드들

메소드 설명
GetOrCreateCurrentSlow ( long lockID, ThreadLocalLockEntry headEntry ) : ThreadLocalLockEntry
ThreadLocalLockEntry ( long lockID ) : System.Diagnostics
VerifyNoNonemptyEntryInListAfter ( long lockID, ThreadLocalLockEntry afterEntry ) : void

메소드 상세

GetCurrent() 공개 정적인 메소드

public static GetCurrent ( long lockID ) : ThreadLocalLockEntry
lockID long
리턴 ThreadLocalLockEntry

GetOrCreateCurrent() 공개 정적인 메소드

public static GetOrCreateCurrent ( long lockID ) : ThreadLocalLockEntry
lockID long
리턴 ThreadLocalLockEntry

HasLockID() 공개 메소드

public HasLockID ( long lockID ) : bool
lockID long
리턴 bool

프로퍼티 상세

_readerLevel 공개적으로 프로퍼티

public ushort _readerLevel
리턴 ushort