Home | History | Annotate | Download | only in src

Lines Matching defs:id

40   uint32_t id = ++task_id_counter_;
42 while ((id == 0) || (cancelable_tasks_.Lookup(reinterpret_cast<void*>(id),
43 id) != nullptr)) {
44 ++id;
47 cancelable_tasks_.LookupOrInsert(reinterpret_cast<void*>(id), id);
49 return id;
53 void CancelableTaskManager::RemoveFinishedTask(uint32_t id) {
55 void* removed = cancelable_tasks_.Remove(reinterpret_cast<void*>(id), id);
62 bool CancelableTaskManager::TryAbort(uint32_t id) {
65 cancelable_tasks_.Lookup(reinterpret_cast<void*>(id), id);
70 void* removed = cancelable_tasks_.Remove(reinterpret_cast<void*>(id), id);
98 to_remove.insert(reinterpret_cast<Cancelable*>(p->value)->id());
102 for (auto id : to_remove) {
103 cancelable_tasks_.Remove(reinterpret_cast<void*>(id), id);