v9.10.2019.0101  全面巩固批量Insert/Update/Upsert,支持数据备份、恢复和同步,支持实体列表保存到文件以及加载
大石头 authored at 2019-01-01 13:38:33
519.00 B
X
using System;
using System.Collections.Generic;

#if NET4
namespace System.Threading
{
	internal static class TimerManager
	{
		private static Dictionary<Timer, object> s_rootedTimers = new Dictionary<Timer, object>();

		public static void Add(Timer timer)
		{
			lock (s_rootedTimers)
			{
                s_rootedTimers.Add(timer, null);
			}
		}

		public static void Remove(Timer timer)
		{
			lock (s_rootedTimers)
			{
                s_rootedTimers.Remove(timer);
			}
		}
	}
}
#endif