The members of Java.Util.Concurrent.Locks.ReentrantReadWriteLock are listed below.
See Also: Inherited members from Java.Lang.Object
Creates a new ReentrantReadWriteLock with default (nonfair) ordering properties. | ||
Creates a new ReentrantReadWriteLock with the given fairness policy. |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
[read-only] | HasQueuedThreads | bool. Queries whether any threads are waiting to acquire the read or write lock. |
[read-only] | IsFair | bool. Returns true if this lock has fairness set true. |
[read-only] | IsWriteLocked | bool. Queries if the write lock is held by any thread. |
[read-only] | IsWriteLockedByCurrentThread | bool. Queries if the write lock is held by the current thread. |
[read-only] | QueueLength | int. Returns an estimate of the number of threads waiting to acquire either the read or write lock. |
[read-only] | ReadHoldCount | int. Queries the number of reentrant read holds on this lock by the current thread. |
[read-only] | ReadLockCount | int. Queries the number of read locks held for this lock. |
[read-only] | WriteHoldCount | int. Queries the number of reentrant write holds on this lock by the current thread. |
[read-only] | Owner | Java.Lang.Thread. Returns the thread that currently owns the write lock, or null if not owned. |
[read-only] | QueuedReaderThreads | ICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire the read lock. |
[read-only] | QueuedThreads | ICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire either the read or write lock. |
[read-only] | QueuedWriterThreads | ICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire the write lock. |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
GetWaitQueueLength(ICondition)Returns an estimate of the number of threads waiting on the given condition associated with the write lock. | ||
HasQueuedThread(Java.Lang.Thread)Queries whether the given thread is waiting to acquire either the read or write lock. | ||
HasWaiters(ICondition)Queries whether any threads are waiting on the given condition associated with the write lock. | ||
ReadLock()Returns the lock used for reading. | ||
WriteLock()Returns the lock used for writing. |
GetWaitingThreads(ICondition)Returns a collection containing those threads that may be waiting on the given condition associated with the write lock. |