Freigeben über


ReentrantLock Constructors

Definition

Overloads

ReentrantLock()

Creates an instance of ReentrantLock.

ReentrantLock(Boolean)

Creates an instance of ReentrantLock with the given fairness policy.

ReentrantLock(IntPtr, JniHandleOwnership)

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

ReentrantLock()

Creates an instance of ReentrantLock.

[Android.Runtime.Register(".ctor", "()V", "")]
public ReentrantLock ();
Attributes

Remarks

Creates an instance of ReentrantLock. This is equivalent to using ReentrantLock(false).

Java documentation for java.util.concurrent.locks.ReentrantLock.ReentrantLock().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReentrantLock(Boolean)

Creates an instance of ReentrantLock with the given fairness policy.

[Android.Runtime.Register(".ctor", "(Z)V", "")]
public ReentrantLock (bool fair);
[<Android.Runtime.Register(".ctor", "(Z)V", "")>]
new Java.Util.Concurrent.Locks.ReentrantLock : bool -> Java.Util.Concurrent.Locks.ReentrantLock

Parameters

fair
Boolean

true if this lock should use a fair ordering policy

Attributes

Remarks

Creates an instance of ReentrantLock with the given fairness policy.

Java documentation for java.util.concurrent.locks.ReentrantLock.ReentrantLock(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReentrantLock(IntPtr, JniHandleOwnership)

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

protected ReentrantLock (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Locks.ReentrantLock : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Locks.ReentrantLock

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to