示例#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;
 }
 inline bool dequeueUntil(Sirikata::Task::LocalTime until) {
     return mWorkQueue->dequeueUntil(until)!=0;
 }