コード例 #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;
 }