Click or drag to resize

ThreadGateClose Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Close the thread gate.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public virtual bool Close(
	long millis
)

Parameters

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

Return Value

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

Implements

GateClose(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