public static void AddSchedulerEntry(SchedulerEntry entry) { lock (listlock) { toBeAdded.Add(entry); } }
public static void RemoveSchedulerEntry(SchedulerEntry entry) { lock (listlock) { toBeRemoved.Add(entry); } }