コード例 #1
0
 public QueryThread(bool closeWhenEmpty, QueryThreadPool pool)
     : base(closeWhenEmpty, false)
 {
     _Pool          = pool;
     OnMessageEvent = ReceiveMessage;
     OnErrorEvent   = ReceiveError;
 }
コード例 #2
0
ファイル: QueryThreadManager.cs プロジェクト: wj60387/hubble
        static QueryThreadPool _PriorPool; //Prior pool used for the query from bigtable


        internal static void Init(int queryThreadNum)
        {
            _SPPool = new QueryThreadPool(16);

            int primaryPoolCount = Math.Max(1, queryThreadNum);

            _PrimaryPool = new QueryThreadPool(primaryPoolCount);

            _PriorPool = new QueryThreadPool(primaryPoolCount);
        }