/** * @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); } }
public void ProcessQuery(ConoDBJob dbJob) { //Todo. push to free processor processores[0].dbJobQueue.Push(dbJob); }