Пример #1
0
 inline bool dequeueUntil(Sirikata::Task::AbsTime until) {
     return mWorkQueue->dequeueUntil(until);
 }
Пример #2
0
 inline void enqueue(WorkItem *item) {
     mWorkQueue->enqueue(item);
 }
Пример #3
0
 inline bool dequeuePoll() {
     return mWorkQueue->dequeuePoll();
 }
Пример #4
0
 /**
  * Adds a job to the work queue to be run.
  */
 void queueWork(const WorkItemClass::FunctionType &work) {
 	mWorkQueue->enqueue(new WorkItemClass(work));
 }
Пример #5
0
 /// destructs the work queue class, processes remaining tasks and stops it from being a singleton
 ~SequentialWorkQueue() {
 	mWorkQueue->dequeueAll();
 }
Пример #6
0
 /**
  * processes a single job in the work queue if one exists
  * \returns true if there are any remaining jobs on the work queue
  */
 bool processOneJob() {
 	return mWorkQueue->dequeuePoll();
 }
Пример #7
0
 virtual unsigned int numSchedulableJobs() {
     return mWorkQueue->probablyEmpty()?0:1;
 }
Пример #8
0
 inline bool dequeueUntil(Sirikata::Task::LocalTime until) {
     return mWorkQueue->dequeueUntil(until)!=0;
 }