Linguaggio

ReentrantLock Costruttori

Definizione

Overload

Nome Descrizione
ReentrantLock()

Crea un'istanza di ReentrantLock.

ReentrantLock(Boolean)

Crea un'istanza di ReentrantLock con i criteri di equità specificati.

ReentrantLock(IntPtr, JniHandleOwnership)

Costruttore usato durante la creazione di rappresentazioni gestite di oggetti JNI; chiamato dal runtime.

ReentrantLock()

Crea un'istanza di ReentrantLock.

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

Commenti

Crea un'istanza di ReentrantLock. Equivale all'uso ReentrantLock(false)di .

per java.util.concurrent.locks.ReentrantLock.ReentrantLock().

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

ReentrantLock(Boolean)

Crea un'istanza di ReentrantLock con i criteri di equità specificati.

[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

Parametri

fair
Boolean

true se questo blocco deve usare un criterio di ordinamento equo

Attributi

Commenti

Crea un'istanza di ReentrantLock con i criteri di equità specificati.

per java.util.concurrent.locks.ReentrantLock.ReentrantLock(boolean).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

ReentrantLock(IntPtr, JniHandleOwnership)

Costruttore usato durante la creazione di rappresentazioni gestite di oggetti JNI; chiamato dal runtime.

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

Parametri

javaReference
IntPtr

nativeint

Oggetto IntPtrcontenente un riferimento all'oggetto JNI (Native Interface) Java.

transfer
JniHandleOwnership

Oggetto JniHandleOwnershipche indica come gestire javaReference

Commenti

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a