remove(RetryTask task) { lock (this) { return(_requests.Remove(task)); } }
public bool remove(RetryTask task) { lock(this) { return _requests.Remove(task); } }
public void add(OutgoingAsync outAsync, int interval) { lock(this) { RetryTask task = new RetryTask(this, outAsync); _instance.timer().schedule(task, interval); _requests.Add(task, null); } }
public void add(OutgoingAsync outAsync, int interval) { lock (this) { RetryTask task = new RetryTask(this, outAsync); _instance.timer().schedule(task, interval); _requests.Add(task, null); } }
public void add(ProxyOutgoingAsyncBase outAsync, int interval) { lock (this) { if (_communicator == null) { throw new Ice.CommunicatorDestroyedException(); } RetryTask task = new RetryTask(_communicator, this, outAsync); outAsync.cancelable(task); // This will throw if the request is canceled. _communicator.timer().schedule(task, interval); _requests.Add(task, null); } }
public void remove(RetryTask task) { lock (this) { if (_requests.Remove(task)) { if (_communicator == null && _requests.Count == 0) { // If we are destroying the queue, destroy is probably waiting on the queue to be empty. System.Threading.Monitor.Pulse(this); } } } }
public void add(ProxyOutgoingAsyncBase outAsync, int interval) { lock(this) { if(_instance == null) { throw new Ice.CommunicatorDestroyedException(); } RetryTask task = new RetryTask(this, outAsync); outAsync.cancelable(task); // This will throw if the request is canceled. _instance.timer().schedule(task, interval); _requests.Add(task, null); } }
public bool cancel(RetryTask task) { lock (this) { if (_requests.Remove(task)) { if (_communicator == null && _requests.Count == 0) { // If we are destroying the queue, destroy is probably waiting on the queue to be empty. System.Threading.Monitor.Pulse(this); } return(_communicator.timer().cancel(task)); } return(false); } }
public bool cancel(RetryTask task) { lock(this) { if(_requests.Remove(task)) { if(_instance == null && _requests.Count == 0) { // If we are destroying the queue, destroy is probably waiting on the queue to be empty. System.Threading.Monitor.Pulse(this); } return _instance.timer().cancel(task); } return false; } }
public void remove(RetryTask task) { lock(this) { if(_requests.Remove(task)) { if(_instance == null && _requests.Count == 0) { // If we are destroying the queue, destroy is probably waiting on the queue to be empty. System.Threading.Monitor.Pulse(this); } } } }