Home
last modified time | relevance | path

Searched refs:TaskId (Results 1 – 16 of 16) 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/
Dmessage_loop_unittest.cc48 using TaskId = MessageLoop::TaskId; typedef
87 TaskId task_id = this->loop_->PostTask(FROM_HERE, Bind(&SetToTrue, &called)); in TYPED_TEST()
96 TaskId task_id = this->loop_->PostTask(FROM_HERE, Bind(&SetToTrue, &called)); in TYPED_TEST()
106 TaskId task_id = this->loop_->PostDelayedTask( in TYPED_TEST()
140 TaskId task_id = this->loop_->WatchFileDescriptor( in TYPED_TEST()
159 TaskId task_id = this->loop_->WatchFileDescriptor( in TYPED_TEST()
177 TaskId task_id = this->loop_->WatchFileDescriptor( in TYPED_TEST()
194 TaskId task_id = this->loop_->WatchFileDescriptor( in TYPED_TEST()
213 TaskId read_task_id = this->loop_->WatchFileDescriptor( in TYPED_TEST()
215 Bind([] (MessageLoop* loop, TaskId* read_task_id) { in TYPED_TEST()
[all …]
Dbase_message_loop.h43 TaskId PostDelayedTask(const base::Location& from_here,
47 TaskId WatchFileDescriptor(const base::Location& from_here,
53 bool CancelTask(TaskId task_id) override;
75 void OnRanPostedTask(MessageLoop::TaskId task_id);
81 void OnFileReadyPostedTask(MessageLoop::TaskId task_id);
84 TaskId NextTaskId();
92 MessageLoop::TaskId task_id;
100 MessageLoop::TaskId task_id,
132 MessageLoop::TaskId task_id_;
163 std::map<MessageLoop::TaskId, DelayedTask> delayed_tasks_;
[all …]
Dmessage_loop.h22 using TaskId = uint64_t; variable
26 static const TaskId kTaskIdNull;
52 virtual TaskId PostDelayedTask(const base::Location& from_here,
56 TaskId PostDelayedTask(const base::Closure& task, base::TimeDelta delay) { in PostDelayedTask()
62 TaskId PostTask(const base::Closure& task) { in PostTask()
65 TaskId PostTask(const base::Location& from_here, in PostTask()
83 virtual TaskId WatchFileDescriptor(const base::Location& from_here,
90 TaskId WatchFileDescriptor(int fd, in WatchFileDescriptor()
102 virtual bool CancelTask(TaskId task_id) = 0;
Dfake_message_loop.h39 TaskId PostDelayedTask(const base::Location& from_here,
43 TaskId WatchFileDescriptor(const base::Location& from_here,
49 bool CancelTask(TaskId task_id) override;
72 std::map<MessageLoop::TaskId, ScheduledTask> tasks_;
78 std::pair<base::Time, MessageLoop::TaskId>,
79 std::vector<std::pair<base::Time, MessageLoop::TaskId>>,
80 std::greater<std::pair<base::Time, MessageLoop::TaskId>>> fire_order_;
84 std::multimap<std::pair<int, WatchMode>, MessageLoop::TaskId> fds_watched_;
92 MessageLoop::TaskId last_id_ = kTaskIdNull;
Dbase_message_loop.cc84 MessageLoop::TaskId BaseMessageLoop::PostDelayedTask( in PostDelayedTask()
88 TaskId task_id = NextTaskId(); in PostDelayedTask()
105 MessageLoop::TaskId BaseMessageLoop::WatchFileDescriptor( in WatchFileDescriptor()
127 TaskId task_id = NextTaskId(); in WatchFileDescriptor()
169 bool BaseMessageLoop::CancelTask(TaskId task_id) { in CancelTask()
235 MessageLoop::TaskId BaseMessageLoop::NextTaskId() { in NextTaskId()
236 TaskId res; in NextTaskId()
246 void BaseMessageLoop::OnRanPostedTask(MessageLoop::TaskId task_id) { in OnRanPostedTask()
269 void BaseMessageLoop::OnFileReadyPostedTask(MessageLoop::TaskId task_id) { in OnFileReadyPostedTask()
313 MessageLoop::TaskId task_id, in IOTask()
Dmock_message_loop.h38 static_cast<TaskId(FakeMessageLoop::*)( in MockMessageLoop()
47 static_cast<TaskId(FakeMessageLoop::*)( in MockMessageLoop()
61 TaskId(const base::Location& from_here,
66 TaskId(const base::Location& from_here,
72 MOCK_METHOD1(CancelTask, bool(TaskId task_id));
Dfake_message_loop.cc16 MessageLoop::TaskId FakeMessageLoop::PostDelayedTask( in PostDelayedTask()
25 MessageLoop::TaskId current_id = ++last_id_; in PostDelayedTask()
36 MessageLoop::TaskId FakeMessageLoop::WatchFileDescriptor( in WatchFileDescriptor()
42 MessageLoop::TaskId current_id = ++last_id_; in WatchFileDescriptor()
50 bool FakeMessageLoop::CancelTask(TaskId task_id) { in CancelTask()
Dfake_message_loop_unittest.cc26 using TaskId = MessageLoop::TaskId; typedef
94 TaskId task_id = loop_->WatchFileDescriptor( in TEST_F()
Dmessage_loop_utils.cc17 MessageLoop::TaskId task_id = loop->PostDelayedTask( in MessageLoopRunUntil()
Dmessage_loop.cc22 const MessageLoop::TaskId MessageLoop::kTaskIdNull = 0;
/external/libbrillo/brillo/
Dbinder_watcher.h39 MessageLoop::TaskId task_id_{MessageLoop::kTaskIdNull};
Dasynchronous_signal_handler.h46 MessageLoop::TaskId fd_watcher_task_{MessageLoop::kTaskIdNull};
/external/libbrillo/brillo/streams/
Dfile_stream.cc202 MessageLoop::TaskId read_watcher_{MessageLoop::kTaskIdNull};
203 MessageLoop::TaskId write_watcher_{MessageLoop::kTaskIdNull};