Пример #1
0
        /**
         * @brief
         * DBJob을 받아옴
         */
        public void Push(ConoDBJob DBJob)
        {
            lock (queue)
            {
                queue.Enqueue(DBJob);
            }

            sem.Release();
        }
Пример #2
0
        public void Run()
        {
            while (true)
            {
                ConoDBJob dbJob = dbJobQueue.Pop();
                dbJob.Process(dbConnection);

                handler.ReceiveResult(dbJob, dbConnection.jsonObject);
            }
        }
Пример #3
0
 public void ProcessQuery(ConoDBJob dbJob)
 {
     //Todo. push to free processor
     processores[0].dbJobQueue.Push(dbJob);
 }