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_);
boost::asio::io_context * io_service()
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
int GetTaskId(const std::string &name)
bool StartTbbKeepAwakeTask(TaskScheduler *ts, EventManager *event_mgr, const std::string task_name, uint32_t tbbKeepawakeTimeout=1000)
uint64_t tbb_awake_count_
void ModifyTbbKeepAwakeTimeout(uint32_t timeout)
void ShutTbbKeepAwakeTask()
uint32_t tbb_awake_val() const
static bool DeleteTimer(Timer *Timer)
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)
bool Reschedule(int time)