Searched defs:task (Results 1 - 25 of 399) sorted by path

1234567891011>>

/external/apache-xml/src/main/java/org/apache/xml/utils/
H A DThreadControllerWrapper.java38 public static void waitThread(Thread worker, Runnable task) argument
41 m_tpool.waitThread(worker, task);
54 * Will get a thread from the pool, execute the task
60 * NEEDSDOC @param task
61 * @param priority if >0 the task will run with the given priority
63 * @return The thread that is running the task, can be used
66 public Thread run(Runnable task, int priority) argument
69 Thread t = new Thread(task);
79 * Wait until the task is completed on the worker
83 * NEEDSDOC @param task
87 waitThread(Thread worker, Runnable task) argument
[all...]
/external/bluetooth/bluedroid/gki/common/
H A Dgki_debug.c109 UINT16 gki_calc_stack (UINT8 task) argument
115 stacksize = (int) gki_cb.com.OSStackSize[task];
116 p = (UINT32 *)gki_cb.com.OSStack[task]; /* assume stack is aligned, */
131 ** Description Print task stack usage.
253 ** Description This function prints the task states.
/external/chromium_org/android_webview/browser/
H A Ddeferred_gpu_command_service.cc83 void DeferredGpuCommandService::ScheduleTask(const base::Closure& task) { argument
86 tasks_.push(task);
121 base::Closure task; local
130 task = idle_tasks_.front().second;
133 task.Run();
162 base::Closure task; local
165 task = tasks_.front();
168 task.Run();
/external/chromium_org/android_webview/native/
H A Daw_quota_manager_bridge_impl.cc146 void RunOnUIThread(const base::Closure& task) { argument
148 task.Run();
150 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, task);
H A Dcookie_manager.cc174 void ExecCookieTaskSync(const base::Callback<void(BoolCallback)>& task);
175 void ExecCookieTaskSync(const base::Callback<void(IntCallback)>& task);
176 void ExecCookieTaskSync(const base::Callback<void(base::Closure)>& task);
177 void ExecCookieTask(const base::Closure& task);
278 // Executes the |task| on the |cookie_monster_proxy_| message loop and
290 const base::Callback<void(BoolCallback)>& task) {
293 base::Bind(task, BoolCallbackAdapter(SignalEventClosure(&completion))));
300 const base::Callback<void(IntCallback)>& task) {
303 base::Bind(task, IntCallbackAdapter(SignalEventClosure(&completion))));
311 const base::Callback<void(base::Closure)>& task) {
289 ExecCookieTaskSync( const base::Callback<void(BoolCallback)>& task) argument
299 ExecCookieTaskSync( const base::Callback<void(IntCallback)>& task) argument
310 ExecCookieTaskSync( const base::Callback<void(base::Closure)>& task) argument
319 ExecCookieTask(const base::Closure& task) argument
[all...]
/external/chromium_org/ash/system/chromeos/session/
H A Dlogout_confirmation_controller_unittest.cc34 const base::Closure& task,
38 const base::Closure& task,
91 const base::Closure& task,
93 tasks_.push(std::make_pair(now_ + delay, task));
99 const base::Closure& task,
113 base::Closure task = tasks_.top().second; local
115 task.Run();
123 base::Closure task = tasks_.top().second; local
125 task.Run();
89 PostDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument
97 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument
/external/chromium_org/base/android/java/src/org/chromium/base/
H A DThreadUtils.java66 FutureTask<Void> task = new FutureTask<Void>(r, null);
67 postOnUiThread(task);
69 task.get();
100 FutureTask<T> task = new FutureTask<T>(c);
101 runOnUiThread(task);
103 return task.get();
113 * @param task The FutureTask to run
114 * @return The queried task (to aid inline construction)
116 public static <T> FutureTask<T> runOnUiThread(FutureTask<T> task) { argument
118 task
157 postOnUiThread(FutureTask<T> task) argument
168 postOnUiThread(Runnable task) argument
179 postOnUiThreadDelayed(Runnable task, long delayMillis) argument
[all...]
/external/chromium_org/base/
H A Dat_exit.cc51 void AtExitManager::RegisterTask(base::Closure task) { argument
58 g_top_manager->stack_.push(task);
71 base::Closure task = g_top_manager->stack_.top(); local
72 task.Run();
H A Ddeferred_sequenced_task_runner.cc30 const Closure& task,
35 return target_task_runner_->PostDelayedTask(from_here, task, delay);
38 QueueDeferredTask(from_here, task, delay, false /* is_non_nestable */);
48 const Closure& task,
54 task,
57 QueueDeferredTask(from_here, task, delay, true /* is_non_nestable */);
63 const Closure& task,
68 deferred_task.task = task;
82 const DeferredTask& task local
28 PostDelayedTask( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay) argument
46 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay) argument
61 QueueDeferredTask( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay, bool is_non_nestable) argument
[all...]
H A Ddeferred_sequenced_task_runner.h31 const Closure& task,
38 const Closure& task,
42 // deferred tasks are posted with their initial delay, meaning that the task
53 Closure task; member in struct:base::DeferredSequencedTaskRunner::DeferredTask
54 // The delay this task was initially posted with.
63 const Closure& task,
H A Dlinux_util.cc135 snprintf(buf, sizeof(buf), "/proc/%d/task", pid);
140 DIR* task = opendir(buf); local
141 if (!task) {
148 while ((dent = readdir(task))) {
155 closedir(task);
161 snprintf(buf, sizeof(buf), "/proc/%d/task/%d/syscall", pid, current_tid);
H A Dpending_task.cc12 const base::Closure& task)
14 task(task),
22 const base::Closure& task,
26 task(task),
11 PendingTask(const tracked_objects::Location& posted_from, const base::Closure& task) argument
21 PendingTask(const tracked_objects::Location& posted_from, const base::Closure& task, TimeTicks delayed_run_time, bool nestable) argument
H A Dpending_task.h18 // Contains data about a pending task. Stored in TaskQueue and DelayedTaskQueue
22 const Closure& task);
24 const Closure& task,
32 // The task to run.
33 Closure task; member in struct:base::PendingTask
H A Dsequenced_task_runner.cc13 const Closure& task) {
14 return PostNonNestableDelayedTask(from_here, task, base::TimeDelta());
11 PostNonNestableTask( const tracked_objects::Location& from_here, const Closure& task) argument
H A Dtask_runner.cc24 const Closure& task) OVERRIDE;
37 const Closure& task) {
38 return destination_->PostTask(from_here, task);
44 const Closure& task) {
45 return PostDelayedTask(from_here, task, base::TimeDelta());
50 const Closure& task,
53 from_here, task, reply);
35 PostTask( const tracked_objects::Location& from_here, const Closure& task) argument
43 PostTask(const tracked_objects::Location& from_here, const Closure& task) argument
48 PostTaskAndReply( const tracked_objects::Location& from_here, const Closure& task, const Closure& reply) argument
H A Dtask_runner_util.h58 const Callback<TaskReturnType(void)>& task,
63 base::Bind(&internal::ReturnAsParamAdapter<TaskReturnType>, task,
55 PostTaskAndReplyWithResult( TaskRunner* task_runner, const tracked_objects::Location& from_here, const Callback<TaskReturnType(void)>& task, const Callback<void(ReplyArgType)>& reply) argument
/external/chromium_org/base/mac/
H A Dlibdispatch_task_runner.cc21 const Closure& task,
29 __block const Closure task_copy = task;
51 const Closure& task,
53 return PostDelayedTask(from_here, task, delay);
19 PostDelayedTask( const tracked_objects::Location& from_here, const Closure& task, base::TimeDelta delay) argument
49 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const Closure& task, base::TimeDelta delay) argument
/external/chromium_org/base/message_loop/
H A Dincoming_task_queue.cc23 const Closure& task,
28 from_here, task, CalculateDelayedRuntime(delay), nestable);
30 // We consider the task needs a high resolution timer if the delay is
89 // directly, as it could starve handling of foreign threads. Put every task
96 pending_task->task.Reset();
102 // delayed_run_time value) and for identifying the task in about:tracing.
110 pending_task->task.Reset();
21 AddToIncomingQueue( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay, bool nestable) argument
H A Dmessage_loop.cc90 // time for every task that is added to the MessageLoop incoming queue.
93 // The Android UI message loop needs to get notified each time a task is added
166 // Clean up any unprocessed tasks, but take care: deleting a task could
168 // limit on the number of times we will allow a deleted task to generate more
170 // we end up hitting the loop limit, then it is probably due to one task that
278 const Closure& task) {
279 DCHECK(!task.is_null()) << from_here.ToString();
280 incoming_task_queue_->AddToIncomingQueue(from_here, task, TimeDelta(), true);
285 const Closure& task,
287 DCHECK(!task
276 PostTask( const tracked_objects::Location& from_here, const Closure& task) argument
283 PostDelayedTask( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay) argument
291 PostNonNestableTask( const tracked_objects::Location& from_here, const Closure& task) argument
298 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay) argument
[all...]
H A Dmessage_loop_proxy_impl.cc23 const base::Closure& task,
25 DCHECK(!task.is_null()) << from_here.ToString();
26 return incoming_queue_->AddToIncomingQueue(from_here, task, delay, true);
31 const base::Closure& task,
33 DCHECK(!task.is_null()) << from_here.ToString();
34 return incoming_queue_->AddToIncomingQueue(from_here, task, delay, false);
21 PostDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument
29 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument
H A Dmessage_pump_glib_unittest.cc64 else if (!event.task.is_null())
65 event.task.Run();
78 void AddEventAsTask(int delay_ms, const Closure& task) { argument
79 AddEventHelper(delay_ms, Closure(), task);
93 Closure task; member in struct:base::__anon2371::EventInjector::Event
101 int delay_ms, const Closure& callback, const Closure& task) {
109 EventInjector::Event event = {future, callback, task};
152 // Posts a task on the current message loop.
154 const Closure& task) {
155 MessageLoop::current()->PostTask(from_here, task);
100 AddEventHelper( int delay_ms, const Closure& callback, const Closure& task) argument
153 PostMessageLoopTask(const tracked_objects::Location& from_here, const Closure& task) argument
[all...]
/external/chromium_org/base/process/
H A Dprocess_metrics_mac.cc39 bool GetTaskInfo(mach_port_t task, task_basic_info_64* task_info_data) { argument
40 if (task == MACH_PORT_NULL)
43 kern_return_t kr = task_info(task,
47 // Most likely cause for failure: |task| is a zombie.
80 // Getting a mach task from a pid for another process requires permissions in
126 mach_port_t task = TaskForPid(process_);
127 if (task == MACH_PORT_NULL) {
140 // We iterate through each VM region in the task's address map. For shared
156 kern_return_t kr = mach_vm_region(task,
230 mach_port_t task local
287 mach_port_t task = TaskForPid(process_); local
320 mach_port_t task = MACH_PORT_NULL; local
[all...]
/external/chromium_org/base/task/
H A Dcancelable_task_tracker.cc5 #include "base/task/cancelable_task_tracker.h"
26 void RunIfNotCanceled(const CancellationFlag* flag, const Closure& task) { argument
28 task.Run();
32 const Closure& task,
34 RunIfNotCanceled(flag, task);
74 const Closure& task) {
77 return PostTaskAndReply(task_runner, from_here, task, Bind(&base::DoNothing));
83 const Closure& task,
100 Bind(&RunIfNotCanceled, flag, task),
149 // 1. The task ha
31 RunIfNotCanceledThenUntrack(const CancellationFlag* flag, const Closure& task, const Closure& untrack) argument
71 PostTask( TaskRunner* task_runner, const tracked_objects::Location& from_here, const Closure& task) argument
80 PostTaskAndReply( TaskRunner* task_runner, const tracked_objects::Location& from_here, const Closure& task, const Closure& reply) argument
[all...]
H A Dcancelable_task_tracker.h6 // TaskRunner, and is able to cancel the task later if it's not needed
10 // Each cancelable task can be associated with a reply (also a Closure). After
11 // the task is run on the TaskRunner, |reply| will be posted back to
17 // preferred solutions for canceling a task. However, they don't support
19 // requirement. E.g. We need to cancel database lookup task on DB thread when
21 // cancelation of a task, then CancelableTaskTracker is appropriate,
28 // task. It's safe to destroy a CancelableTaskTracker while there
32 // 2. Both task and reply are deleted on the originating thread.
71 const base::Closure& task);
75 const base::Closure& task,
79 PostTaskAndReplyWithResult( base::TaskRunner* task_runner, const tracked_objects::Location& from_here, const base::Callback<TaskReturnType(void)>& task, const base::Callback<void(ReplyArgType)>& reply) argument
[all...]
/external/chromium_org/base/test/
H A Dnull_task_runner.cc15 const base::Closure& task,
22 const base::Closure& task,
13 PostDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument
20 PostNonNestableDelayedTask( const tracked_objects::Location& from_here, const base::Closure& task, base::TimeDelta delay) argument

Completed in 2325 milliseconds

1234567891011>>