MCPcopy Create free account
hub / github.com/baidu/tera / AddDelayTask

Method AddDelayTask

src/sdk/table_impl.cc:2245–2251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2243}
2244
2245int64_t TableImpl::AddDelayTask(int64_t delay_time, ThreadPool::Task task) {
2246 MutexLock lock(&delay_task_id_mutex_);
2247 ThreadPool::Task t = std::bind(&TableImpl::DelayTaskWrapper, this, task, _1);
2248 int64_t t_id = thread_pool_->DelayTask(delay_time, t);
2249 delay_task_ids_.insert(t_id);
2250 return t_id;
2251}
2252
2253void TableImpl::ClearDelayTask() {
2254 MutexLock lock(&delay_task_id_mutex_);

Callers

nothing calls this directly

Calls 2

DelayTaskMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected