Semaphore.AcquireUninterruptibly Method

Definition

Overloads

AcquireUninterruptibly()

Acquires a permit from this semaphore, blocking until one is available.

AcquireUninterruptibly(Int32)

Acquires the given number of permits from this semaphore, blocking until all are available.

AcquireUninterruptibly()

Acquires a permit from this semaphore, blocking until one is available.

[Android.Runtime.Register("acquireUninterruptibly", "()V", "GetAcquireUninterruptiblyHandler")]
public virtual void AcquireUninterruptibly ();
[<Android.Runtime.Register("acquireUninterruptibly", "()V", "GetAcquireUninterruptiblyHandler")>]
abstract member AcquireUninterruptibly : unit -> unit
override this.AcquireUninterruptibly : unit -> unit
Attributes

Remarks

Java documentation for java.util.concurrent.Semaphore.acquireUninterruptibly().

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

AcquireUninterruptibly(Int32)

Acquires the given number of permits from this semaphore, blocking until all are available.

[Android.Runtime.Register("acquireUninterruptibly", "(I)V", "GetAcquireUninterruptibly_IHandler")]
public virtual void AcquireUninterruptibly (int permits);
[<Android.Runtime.Register("acquireUninterruptibly", "(I)V", "GetAcquireUninterruptibly_IHandler")>]
abstract member AcquireUninterruptibly : int -> unit
override this.AcquireUninterruptibly : int -> unit

Parameters

permits
Int32

the number of permits to acquire

Attributes

Exceptions

if permits is negative

Remarks

Java documentation for java.util.concurrent.Semaphore.acquireUninterruptibly(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