Home
last modified time | relevance | path

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

12

/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/cronet/base/task/
Dcancelable_task_tracker.h64 typedef int64_t TaskId; typedef
65 static const TaskId kBadTaskId;
77 TaskId PostTask(TaskRunner* task_runner,
81 TaskId PostTaskAndReply(TaskRunner* task_runner,
87 TaskId PostTaskAndReplyWithResult(TaskRunner* task_runner, in PostTaskAndReplyWithResult()
109 TaskId NewTrackedTaskId(IsCanceledCallback* is_canceled_cb);
118 void TryCancel(TaskId id);
144 void Track(TaskId id, scoped_refptr<TaskCancellationFlag> flag);
145 void Untrack(TaskId id);
151 small_map<std::map<TaskId, scoped_refptr<TaskCancellationFlag>>, 4>
[all …]
Dcancelable_task_tracker.cc34 const CancelableTaskTracker::TaskId CancelableTaskTracker::kBadTaskId = 0;
46 CancelableTaskTracker::TaskId CancelableTaskTracker::PostTask( in PostTask()
56 CancelableTaskTracker::TaskId CancelableTaskTracker::PostTaskAndReply( in PostTaskAndReply()
69 TaskId id = next_id_; in PostTaskAndReply()
88 CancelableTaskTracker::TaskId CancelableTaskTracker::NewTrackedTaskId( in NewTrackedTaskId()
93 TaskId id = next_id_; in NewTrackedTaskId()
114 void CancelableTaskTracker::TryCancel(TaskId id) { in TryCancel()
173 void CancelableTaskTracker::Track(TaskId id, in Track()
181 void CancelableTaskTracker::Untrack(TaskId id) { in Untrack()
Dcancelable_task_tracker_unittest.cc73 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTask( in TEST_F()
91 CancelableTaskTracker::TaskId task_id = in TEST_F()
110 CancelableTaskTracker::TaskId task_id = in TEST_F()
129 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTaskAndReply( in TEST_F()
150 CancelableTaskTracker::TaskId task_id = in TEST_F()
235 CancelableTaskTracker::TaskId task_id = task_tracker_.PostTask( in TEST_F()
333 void TryCancel(CancelableTaskTracker::TaskId task_id, in TryCancel()
345 CancelableTaskTracker::TaskId task_id = in TEST_F()
364 CancelableTaskTracker::TaskId task_id = in TEST_F()
/external/ot-br-posix/src/common/
Dtask_runner.hpp72 typedef uint64_t TaskId; typedef in otbr::TaskRunner
109 TaskId Post(Milliseconds aDelay, Task<void> aTask);
118 void Cancel(TaskId aTaskId);
158 DelayedTask(TaskId aTaskId, Milliseconds aDelay, Task<void> aTask) in DelayedTask()
172 TaskId mTaskId;
177 TaskId PushTask(Milliseconds aDelay, Task<void> aTask);
186 std::set<TaskId> mActiveTaskIds;
187 TaskId mNextTaskId = 1;
Dtask_runner.cpp78 TaskRunner::TaskId TaskRunner::Post(Milliseconds aDelay, Task<void> aTask) in Post()
132 TaskRunner::TaskId TaskRunner::PushTask(Milliseconds aDelay, Task<void> aTask) in PushTask()
136 TaskId taskId; in PushTask()
165 void TaskRunner::Cancel(TaskRunner::TaskId aTaskId) in Cancel()
186 TaskId taskId = top.mTaskId; in PopTasks()
/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/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmemory_management.h34 using TaskId = size_t; variable
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dinference_context.cc511 static_cast<TaskId>(usage.second.x), in AllocateMemoryForBuffers()
512 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForBuffers()
621 static_cast<TaskId>(usage.second.x), in AllocateMemoryForStrongShapes()
622 static_cast<TaskId>(usage.second.y)}); in AllocateMemoryForStrongShapes()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dinference_context.cc193 static_cast<TaskId>(usage.second.x), in GetBufferAsignment()
194 static_cast<TaskId>(usage.second.y)}); in GetBufferAsignment()
630 static_cast<TaskId>(usage.second.x), in AllocateStrongShapesTensors()
631 static_cast<TaskId>(usage.second.y)}); in AllocateStrongShapesTensors()

12