public void Reset() { this._workItem = null; this._isTimedout = false; this._isSignaled = false; this._waitHandle.Reset(); }
public bool Signal(FluorineFx.Threading.WorkItem workItem) { lock (this) { if (!this._isTimedout) { this._workItem = workItem; this._isSignaled = true; this._waitHandle.Set(); return(true); } } return(false); }