CountDownLatch Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| CountDownLatch(Int32) |
Constructs a |
| CountDownLatch(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
CountDownLatch(Int32)
Constructs a CountDownLatch initialized with the given count.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public CountDownLatch(int count);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.CountDownLatch : int -> Java.Util.Concurrent.CountDownLatch
Parameters
- count
- Int32
the number of times #countDown must be invoked
before threads can pass through #await
- Attributes
Exceptions
if count is negative
Remarks
Constructs a CountDownLatch initialized with the given count.
Java documentation for java.util.concurrent.CountDownLatch.CountDownLatch(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
CountDownLatch(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected CountDownLatch(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.CountDownLatch : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.CountDownLatch
Parameters
- 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.