public void DoWork()
 {
     lock (this._locker)
     {
         MonitorMicro.Pulse(_locker);
     }
 }
Exemplo n.º 2
0
        protected override void Run()
        {
            lock (this.Locker)
            {
                while (this.Running)
                {
                    Debug.Print("Thread Alive at: " + DateTime.UtcNow);

                    MonitorMicro.Wait(this.Locker, 1000);
                }
            }
        }
 public void Run()
 {
     while (true)
     {
         lock (_locker)
         {
             if (MonitorMicro.Wait(_locker, 1000))
             {
                 Debug.Print("Signalled OK");
             }
             else
             {
                 Debug.Print("Timout waiting");
             }
         }
     }
 }