Semaphore.Release Method
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
| Release() |
Releases a permit, returning it to the semaphore. |
| Release(Int32) |
Releases the given number of permits, returning them to the semaphore. |
Release()
Releases a permit, returning it to the semaphore.
[Android.Runtime.Register("release", "()V", "GetReleaseHandler")]
public virtual void Release ();
[<Android.Runtime.Register("release", "()V", "GetReleaseHandler")>]
abstract member Release : unit -> unit
override this.Release : unit -> unit
- Attributes
Remarks
Java documentation for java.util.concurrent.Semaphore.release().
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
Release(Int32)
Releases the given number of permits, returning them to the semaphore.
[Android.Runtime.Register("release", "(I)V", "GetRelease_IHandler")]
public virtual void Release (int permits);
[<Android.Runtime.Register("release", "(I)V", "GetRelease_IHandler")>]
abstract member Release : int -> unit
override this.Release : int -> unit
Parameters
- permits
- Int32
the number of permits to release
- Attributes
Exceptions
if permits is negative
Remarks
Java documentation for java.util.concurrent.Semaphore.release(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.