00001 #pragma once
00002
00003 #include "SimWorker.h"
00004
00005 class CSimWorkers
00006 {
00007 private:
00008 unsigned int workersCount;
00009 unsigned int workerLast;
00010
00011 CSimWorker** workers;
00012
00013 public:
00014 CSimWorkers(
00015 unsigned int workersCount,
00016 unsigned int workersQueueSize
00017 );
00018 ~CSimWorkers();
00019
00020 void Start();
00021 void Stop();
00022
00023 void Enqueue(CSimWorkItem* item);
00024
00025 inline unsigned int Count() { return this->workersCount; }
00026 };