예제 #1
0
 public static void PulseAll(MonitorLock m)
 {
     m.PulseAll();
 }
예제 #2
0
 public static void Wait(MonitorLock m)
 {
     m.Wait();
 }
예제 #3
0
 public static bool Wait(MonitorLock m, TimeSpan timeout)
 {
     return(m.Wait(timeout));
 }
예제 #4
0
 public static bool TryEnter(MonitorLock m, TimeSpan timeout)
 {
     return(m.Acquire(timeout));
 }
예제 #5
0
 public static void Exit(MonitorLock m)
 {
     m.Release();
 }
예제 #6
0
 public static bool TryEnter(MonitorLock m)
 {
     return(m.TryAcquire());
 }
예제 #7
0
 public static void Enter(MonitorLock m)
 {
     m.Acquire();
 }
예제 #8
0
 internal MonitorLocked(MonitorLock monitorLock)
 {
     this.monitorLock = monitorLock;
 }