CyclicBarrier Constructors

Definition

Overloads

CyclicBarrier(Int32)

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and does not perform a predefined action when the barrier is tripped.

CyclicBarrier(Int32, IRunnable)

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier.

CyclicBarrier(IntPtr, JniHandleOwnership)

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

CyclicBarrier(Int32)

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and does not perform a predefined action when the barrier is tripped.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public CyclicBarrier (int parties);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.CyclicBarrier : int -> Java.Util.Concurrent.CyclicBarrier

Parameters

parties
Int32

the number of threads that must invoke #await before the barrier is tripped

Attributes

Exceptions

if parties is less than 1

Remarks

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and does not perform a predefined action when the barrier is tripped.

Java documentation for java.util.concurrent.CyclicBarrier.CyclicBarrier(int).

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

CyclicBarrier(Int32, IRunnable)

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier.

[Android.Runtime.Register(".ctor", "(ILjava/lang/Runnable;)V", "")]
public CyclicBarrier (int parties, Java.Lang.IRunnable? barrierAction);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/Runnable;)V", "")>]
new Java.Util.Concurrent.CyclicBarrier : int * Java.Lang.IRunnable -> Java.Util.Concurrent.CyclicBarrier

Parameters

parties
Int32

the number of threads that must invoke #await before the barrier is tripped

barrierAction
IRunnable

the command to execute when the barrier is tripped, or null if there is no action

Attributes

Exceptions

if parties is less than 1

Remarks

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier.

Java documentation for java.util.concurrent.CyclicBarrier.CyclicBarrier(int, java.lang.Runnable).

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

CyclicBarrier(IntPtr, JniHandleOwnership)

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

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

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