boost::shared_ptr<IModule> CConfigTaskManager::GetNextTask(){ // if(HasTasks()){ return tasks.front(); } else { return boost::shared_ptr<IModule>(); } }
static fiber * GetNextFiber() { fiber * next = HasTasks() ? GetInactiveFiber() : GetNextScheduledFiber(); next = (next == nullptr) ? GetInactiveFiber() : next; return next; }
void CConfigTaskManager::RemoveAllTasks(){ // if(HasTasks()){ tasks.erase(tasks.begin(),tasks.end()); } }