1 #ifndef CARMA_CONTROL_WORKERPOOL_H
2 #define CARMA_CONTROL_WORKERPOOL_H
26 unsigned int frameExceptions;
27 unsigned int totalExceptions;
29 unsigned int instExecuteCount;
30 unsigned int instQueueCount;
32 std::string frameQueueTimeMaxId;
33 unsigned int frameQueueCount;
34 unsigned int frameQueueTimeMax;
35 unsigned int frameQueueTimeMin;
36 unsigned int frameQueueTimeAvg;
38 std::string totalQueueTimeMaxId;
39 unsigned int totalQueueCount;
40 unsigned int totalQueueTimeMax;
41 unsigned int totalQueueTimeMin;
42 unsigned int totalQueueTimeAvg;
44 std::string frameExecuteTimeMaxId;
45 unsigned int frameExecuteCount;
46 unsigned int frameExecuteTimeMax;
47 unsigned int frameExecuteTimeMin;
48 unsigned int frameExecuteTimeAvg;
50 std::string totalExecuteTimeMaxId;
51 unsigned int totalExecuteCount;
52 unsigned int totalExecuteTimeMax;
53 unsigned int totalExecuteTimeMin;
54 unsigned int totalExecuteTimeAvg;
68 bool logStatsByDefault );
79 const ::std::set< util::WorkRequest > & group );
87 const ::std::set< util::WorkRequest > & group,
96 const ::std::set< util::WorkRequest > & group,
97 struct ::timeval & queueTime );
105 const ::std::set< util::WorkRequest > & group,
107 struct ::timeval & queueTime );
115 const ::std::set< util::WorkRequest > & group,
116 struct ::timespec & queueTime );
124 const ::std::set< util::WorkRequest > & group,
126 struct ::timespec & queueTime );
void queueRequestGroup(const ::std::set< util::WorkRequest > &group)
Queue a group of work requests for servicing.
A structure which contains statistics about the WorkerPool.
A pool of workers that can have work requests queued to it for servicing.
virtual ~WorkerPool()
Destruct a pool of workers.
WorkerPool(const ::std::string &id,::size_t numWorkers, bool logStatsByDefault)
Construct a pool of workers.
void getStatistics(struct WorkerPoolStats &stats)
Get statistics about this WorkerPool object.