public void DescheduleSyncTask(SyncScheduleItem item) { lock (Locker) { Tasks.Remove(item); } }
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); }
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; }
public void DescheduleSyncTask(SyncScheduleItem item) { lock (Locker) { Tasks.Remove(item); } }