CountDownLatch 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CountDownLatch(Int32) |
構造 a |
| CountDownLatch(IntPtr, JniHandleOwnership) |
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。 |
CountDownLatch(Int32)
構造 a CountDownLatch ,初始化為給定計數。
[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
參數
- count
- Int32
執行緒必須被呼叫的次數 #countDown ,執行緒才能通過 #await
- 屬性
例外狀況
若為 count 負
備註
構造 a CountDownLatch ,初始化為給定計數。
Java 文件 java.util.concurrent.CountDownLatch.CountDownLatch(int)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
CountDownLatch(IntPtr, JniHandleOwnership)
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。
protected CountDownLatch(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.CountDownLatch : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.CountDownLatch
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。