Home | History | Annotate | Download | only in base

Lines Matching refs:TaskRunner

22 // A TaskRunner is an object that runs posted tasks (in the form of
23 // Closure objects). The TaskRunner interface provides a way of
25 // run. TaskRunner provides very weak guarantees as to how posted
37 // TaskRunner does not guarantee the order in which posted tasks are
44 // Implementations of TaskRunner should be thread-safe in that all
49 // Some theoretical implementations of TaskRunner:
51 // - A TaskRunner that uses a thread pool to run posted tasks.
53 // - A TaskRunner that, for each task, spawns a non-joinable thread
56 // - A TaskRunner that stores the list of posted tasks and has a
58 class BASE_EXPORT TaskRunner
59 : public RefCountedThreadSafe<TaskRunner, TaskRunnerTraits> {
86 // Posts |task| on the current TaskRunner. On completion, |reply|
136 friend class RefCountedThreadSafe<TaskRunner, TaskRunnerTraits>;
138 TaskRunner();
139 virtual ~TaskRunner();
148 static void Destruct(const TaskRunner* task_runner);