Esempio n. 1
0
 public QueryThread(bool closeWhenEmpty, QueryThreadPool pool)
     : base(closeWhenEmpty, false)
 {
     _Pool          = pool;
     OnMessageEvent = ReceiveMessage;
     OnErrorEvent   = ReceiveError;
 }
Esempio n. 2
0
        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);
        }