ISemaphoreRelease Method (Int32)Hazelcast .Net Client Class Library
Releases the given number of permits, increasing the number of available permits by that amount.

Namespace: Hazelcast.Core
Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.9
Syntax

void Release(
	int permits
)

Parameters

permits
Type: SystemInt32
the number of permits to release
Exceptions

ExceptionCondition
ArgumentException if permits is negative
Remarks

Releases the given number of permits, increasing the number of available permits by that amount.

There is no requirement that a thread that releases a permit must have acquired that permit by calling one of the acquire methods. Correct usage of a semaphore is established by programming convention in the application.

See Also

Reference