Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01

Close the thread gate.

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

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.

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