Java.Util.Concurrent.Locks.ReentrantReadWriteLock Members

The members of Java.Util.Concurrent.Locks.ReentrantReadWriteLock are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Creates a new ReentrantReadWriteLock with default (nonfair) ordering properties.
Creates a new ReentrantReadWriteLock with the given fairness policy.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
HasQueuedThreadsbool. Queries whether any threads are waiting to acquire the read or write lock.
[read-only]
IsFairbool. Returns true if this lock has fairness set true.
[read-only]
IsWriteLockedbool. Queries if the write lock is held by any thread.
[read-only]
IsWriteLockedByCurrentThreadbool. Queries if the write lock is held by the current thread.
[read-only]
QueueLengthint. Returns an estimate of the number of threads waiting to acquire either the read or write lock.
[read-only]
ReadHoldCountint. Queries the number of reentrant read holds on this lock by the current thread.
[read-only]
ReadLockCountint. Queries the number of read locks held for this lock.
[read-only]
WriteHoldCountint. Queries the number of reentrant write holds on this lock by the current thread.

Protected Properties

[read-only]
OwnerJava.Lang.Thread. Returns the thread that currently owns the write lock, or null if not owned.
[read-only]
QueuedReaderThreadsICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire the read lock.
[read-only]
QueuedThreadsICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire either the read or write lock.
[read-only]
QueuedWriterThreadsICollection<Java.Lang.Thread>. Returns a collection containing threads that may be waiting to acquire the write lock.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetWaitQueueLength(ICondition) : int
Returns an estimate of the number of threads waiting on the given condition associated with the write lock.
HasQueuedThread(Java.Lang.Thread) : bool
Queries whether the given thread is waiting to acquire either the read or write lock.
HasWaiters(ICondition) : bool
Queries whether any threads are waiting on the given condition associated with the write lock.
ReadLock() : ILock
Returns the lock used for reading.
WriteLock() : ILock
Returns the lock used for writing.

Protected Methods

GetWaitingThreads(ICondition) : ICollection<Java.Lang.Thread>
Returns a collection containing those threads that may be waiting on the given condition associated with the write lock.