Exemple #1
0
 public void Reset()
 {
     this._workItem   = null;
     this._isTimedout = false;
     this._isSignaled = false;
     this._waitHandle.Reset();
 }
Exemple #2
0
 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);
 }