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

            sem.Release();
        }
        public void Run()
        {
            while (true)
            {
                ConoDBJob dbJob = dbJobQueue.Pop();
                dbJob.Process(dbConnection);

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