internal static void Deregister(ThreadManage task) { lock (taskScheduler) { taskScheduler.Remove(task); } }
internal static void Register(ThreadManage task) { lock (taskScheduler) { taskScheduler.Add(task); } }