예제 #1
0
파일: SockIOPool.cs 프로젝트: VqSoft/ZYFC
        public static SockIOPool GetInstance(String poolName)
        {
            if (Pools.ContainsKey(poolName))
                return (SockIOPool)Pools[poolName];

            SockIOPool pool = new SockIOPool();
            Pools[poolName] = pool;

            return pool;
        }
예제 #2
0
파일: SockIOPool.cs 프로젝트: VqSoft/ZYFC
 public MaintenanceThread(SockIOPool pool)
 {
     _thread = new Thread(new ThreadStart(Maintain));
     _pool = pool;
 }