3 #include <boost/bind.hpp>
12 const std::string task_name,
13 uint32_t tbbKeepawakeTimeout = 1000) {
14 uint32_t task_id = ts->
GetTaskId(task_name);
25 tbb::mutex::scoped_lock lock(
mutex_);
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
boost::asio::io_context * io_service()
uint64_t tbb_awake_count_
int GetTaskId(const std::string &name)
void ModifyTbbKeepAwakeTimeout(uint32_t timeout)
uint32_t tbb_awake_val() const
bool StartTbbKeepAwakeTask(TaskScheduler *ts, EventManager *event_mgr, const std::string task_name, uint32_t tbbKeepawakeTimeout=1000)
static Timer * CreateTimer(boost::asio::io_context &service, const std::string &name, int task_id=Timer::GetTimerTaskId(), int task_instance=Timer::GetTimerInstanceId(), bool delete_on_completion=false)
bool Start(int time, Handler handler, ErrorHandler error_handler=NULL)
void ShutTbbKeepAwakeTask()
bool Reschedule(int time)
static bool DeleteTimer(Timer *Timer)