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