Пример #1
0
 public void DescheduleSyncTask(SyncScheduleItem item)
 {
     lock (Locker)
     {
         Tasks.Remove(item);
     }
 }
Пример #2
0
        public SyncScheduleItem ScheduleSyncTask(Action act, double delay = 0)
        {
            SyncScheduleItem item = new SyncScheduleItem()
            {
                MyAction = act, Time = delay, OwningEngine = this
            };

            lock (Locker)
            {
                Tasks.AddLast(item);
            }
            return(item);
        }
Пример #3
0
 public SyncScheduleItem ScheduleSyncTask(Action act, double delay = 0)
 {
     SyncScheduleItem item = new SyncScheduleItem() { MyAction = act, Time = delay, OwningEngine = this };
     lock (Locker)
     {
         Tasks.AddLast(item);
     }
     return item;
 }
Пример #4
0
 public void DescheduleSyncTask(SyncScheduleItem item)
 {
     lock (Locker)
     {
         Tasks.Remove(item);
     }
 }