ThreadGateBarEntry Method |
Namespace: Tangosol.Util
public bool BarEntry( long millis )
gate.BarEntry(-1);
try
{
// processing that does not require the gate to be closed
// ...
}
finally
{
gate.Close(-1);
try
{
// processing that does require the gate to be closed
// ...
}
finally
{
gate.Open(); // matches gate.Close()
}
gate.Open(); // matches gate.BarEntry()
}