public static void Release()
 {
     if (--refcount == 0) {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
Exemple #2
0
 public static void Release()
 {
     if (--refcount == 0)
     {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
 public static void AddRef()
 {
     if (monitor == null) {
         monitor = new PeriodicTimerSystemClockMonitor (TimeSpan.FromSeconds (10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }
Exemple #4
0
 public static void AddRef()
 {
     if (monitor == null)
     {
         monitor = new PeriodicTimerSystemClockMonitor(TimeSpan.FromSeconds(10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }