Ejemplo n.º 1
0
 public static void Release()
 {
     if (--refcount == 0) {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
Ejemplo n.º 2
0
 public static void Release()
 {
     if (--refcount == 0)
     {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
Ejemplo n.º 3
0
 public static void AddRef()
 {
     if (monitor == null) {
         monitor = new PeriodicTimerSystemClockMonitor (TimeSpan.FromSeconds (10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }
Ejemplo n.º 4
0
 public static void AddRef()
 {
     if (monitor == null)
     {
         monitor = new PeriodicTimerSystemClockMonitor(TimeSpan.FromSeconds(10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }