Home
last modified time | relevance | path

Searched refs:TaskId (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/base/task/
Dcancelable_task_tracker.h61 typedef int64_t TaskId; typedef
62 static const TaskId kBadTaskId;
71 TaskId PostTask(TaskRunner* task_runner,
75 TaskId PostTaskAndReply(TaskRunner* task_runner,
81 TaskId PostTaskAndReplyWithResult(TaskRunner* task_runner, in PostTaskAndReplyWithResult()
100 TaskId PostTaskAndReplyWithResult(TaskRunner* task_runner, in PostTaskAndReplyWithResult()
119 TaskId NewTrackedTaskId(IsCanceledCallback* is_canceled_cb);
128 void TryCancel(TaskId id);
139 void Track(TaskId id, CancellationFlag* flag);
140 void Untrack(TaskId id);
[all …]
Dcancelable_task_tracker.cc56 const CancelableTaskTracker::TaskId CancelableTaskTracker::kBadTaskId = 0;
67 CancelableTaskTracker::TaskId CancelableTaskTracker::PostTask( in PostTask()
76 CancelableTaskTracker::TaskId CancelableTaskTracker::PostTaskAndReply( in PostTaskAndReply()
89 TaskId id = next_id_; in PostTaskAndReply()
106 CancelableTaskTracker::TaskId CancelableTaskTracker::NewTrackedTaskId( in NewTrackedTaskId()
111 TaskId id = next_id_; in NewTrackedTaskId()
135 void CancelableTaskTracker::TryCancel(TaskId id) { in TryCancel()
164 void CancelableTaskTracker::Track(TaskId id, CancellationFlag* flag) { in Track()
170 void CancelableTaskTracker::Untrack(TaskId id) { in Untrack()
Dcancelable_task_tracker_unittest.cc112 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTask( in TEST_F()
130 CancelableTaskTracker::TaskId task_id = in TEST_F()
149 CancelableTaskTracker::TaskId task_id = in TEST_F()
168 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTaskAndReply( in TEST_F()
189 CancelableTaskTracker::TaskId task_id = in TEST_F()
360 void TryCancel(CancelableTaskTracker::TaskId task_id, in TryCancel()
372 CancelableTaskTracker::TaskId task_id = in TEST_F()
391 CancelableTaskTracker::TaskId task_id = in TEST_F()
/external/libbrillo/brillo/message_loops/
Dfake_message_loop.h39 TaskId PostDelayedTask(const base::Location& from_here,
43 bool CancelTask(TaskId task_id) override;
59 std::map<MessageLoop::TaskId, ScheduledTask> tasks_;
65 std::pair<base::Time, MessageLoop::TaskId>,
66 std::vector<std::pair<base::Time, MessageLoop::TaskId>>,
67 std::greater<std::pair<base::Time, MessageLoop::TaskId>>> fire_order_;
72 MessageLoop::TaskId last_id_ = kTaskIdNull;
Dmessage_loop.h23 using TaskId = uint64_t; variable
27 static const TaskId kTaskIdNull;
53 virtual TaskId PostDelayedTask(const base::Location& from_here,
57 TaskId PostDelayedTask(base::OnceClosure task, base::TimeDelta delay) { in PostDelayedTask()
63 TaskId PostTask(base::OnceClosure task) { in PostTask()
66 TaskId PostTask(const base::Location& from_here, base::OnceClosure task) { in PostTask()
74 virtual bool CancelTask(TaskId task_id) = 0;
Dbase_message_loop.h44 TaskId PostDelayedTask(const base::Location& from_here,
48 bool CancelTask(TaskId task_id) override;
70 void OnRanPostedTask(MessageLoop::TaskId task_id);
73 TaskId NextTaskId();
81 MessageLoop::TaskId task_id;
90 std::map<MessageLoop::TaskId, DelayedTask> delayed_tasks_;
98 MessageLoop::TaskId last_id_{kTaskIdNull};
Dmessage_loop_test.cc44 using TaskId = MessageLoop::TaskId; typedef
84 TaskId task_id = in TYPED_TEST()
94 TaskId task_id = in TYPED_TEST()
105 TaskId task_id = in TYPED_TEST()
127 TaskId task_id; in TYPED_TEST()
131 [](bool* cancel_result, MessageLoop* loop, TaskId* task_id) { in TYPED_TEST()
Dbase_message_loop.cc80 MessageLoop::TaskId BaseMessageLoop::PostDelayedTask( in PostDelayedTask()
84 TaskId task_id = NextTaskId(); in PostDelayedTask()
100 bool BaseMessageLoop::CancelTask(TaskId task_id) { in CancelTask()
162 MessageLoop::TaskId BaseMessageLoop::NextTaskId() { in NextTaskId()
163 TaskId res; in NextTaskId()
172 void BaseMessageLoop::OnRanPostedTask(MessageLoop::TaskId task_id) { in OnRanPostedTask()
Dmock_message_loop.h38 static_cast<TaskId(FakeMessageLoop::*)( in MockMessageLoop()
52 MOCK_METHOD(TaskId,
57 MOCK_METHOD(bool, CancelTask, (TaskId), (override));
Dfake_message_loop.cc16 MessageLoop::TaskId FakeMessageLoop::PostDelayedTask( in PostDelayedTask()
25 MessageLoop::TaskId current_id = ++last_id_; in PostDelayedTask()
36 bool FakeMessageLoop::CancelTask(TaskId task_id) { in CancelTask()
Dfake_message_loop_test.cc25 using TaskId = MessageLoop::TaskId; typedef
Dmessage_loop_utils.cc16 MessageLoop::TaskId task_id = loop->PostDelayedTask( in MessageLoopRunUntil()
Dmessage_loop.cc22 const MessageLoop::TaskId MessageLoop::kTaskIdNull = 0;
/external/tensorflow/tensorflow/lite/delegates/gpu/common/memory_management/
Dtypes.h27 using TaskId = size_t; variable
37 TaskId first_task;
38 TaskId last_task;
40 TensorUsageRecord(TensorSizeT size, TaskId first, TaskId last) in TensorUsageRecord()
Dinternal.h84 QueueRecord(TaskId task_id, size_t obj_id) in QueueRecord()
94 TaskId last_task;
Dinternal.cc66 TaskId num_tasks = 0; in CalculateTaskProfiles()
74 for (TaskId task_id = usage_records[rec_id].first_task; in CalculateTaskProfiles()
Dgreedy_by_breadth_assignment.cc37 TaskId task_id;
/external/llvm-project/llvm/include/llvm/Support/
DParallel.h186 for (size_t TaskId = 0; TaskId < NumTasks; ++TaskId) { in parallel_transform_reduce() local
187 IterTy TEnd = TBegin + TaskSize + (TaskId < RemainingInputs ? 1 : 0); in parallel_transform_reduce()
193 Results[TaskId] = R; in parallel_transform_reduce()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmemory_management.h34 using TaskId = size_t; variable
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dinference_context.cc494 static_cast<TaskId>(usage.second.x), in AllocateMemoryForBuffers()
495 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForBuffers()
558 static_cast<TaskId>(usage.second.x), in AllocateMemoryForStrongShapes()
559 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForStrongShapes()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dinference_context.cc541 static_cast<TaskId>(usage.second.x), in AllocateMemoryForBuffers()
542 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForBuffers()
588 static_cast<TaskId>(usage.second.x), in AllocateMemoryForStrongShapes()
589 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForStrongShapes()