Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Close the thread gate.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)

Syntax

C#
public virtual bool Close(
	long millis
)

Parameters

millis
Type: System..::.Int64
Maximum number of milliseconds to wait; pass -1 for forever or 0 for no wait.

Return Value

true iff entry into the thread gate was successfully barred by the calling thread and no other threads remain in the gate.

Implements

Gate..::.Close(Int64)

Remarks

A thread uses this method to obtain exclusive access to the resource represented by the thread gate. Each invocation of this method must ultimately have a corresponding invocation of the Open method.

See Also