Home
last modified time | relevance | path

Searched refs:ThreadPoolWorker (Results 1 – 2 of 2) sorted by relevance

/art/runtime/
Dthread_pool.cc28 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, in ThreadPoolWorker() function in art::ThreadPoolWorker
44 ThreadPoolWorker::~ThreadPoolWorker() { in ~ThreadPoolWorker()
48 void ThreadPoolWorker::Run() { in Run()
58 void* ThreadPoolWorker::Callback(void* arg) { in Callback()
59 ThreadPoolWorker* worker = reinterpret_cast<ThreadPoolWorker*>(arg); in Callback()
93 threads_.push_back(new ThreadPoolWorker(this, name, ThreadPoolWorker::kDefaultStackSize)); in ThreadPool()
204 : ThreadPoolWorker(thread_pool, name, stack_size), task_(NULL) {} in WorkStealingWorker()
283 threads_.push_back(new WorkStealingWorker(this, name, ThreadPoolWorker::kDefaultStackSize)); in WorkStealingThreadPool()
Dthread_pool.h38 class ThreadPoolWorker {
47 virtual ~ThreadPoolWorker();
50 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
61 DISALLOW_COPY_AND_ASSIGN(ThreadPoolWorker);
121 std::vector<ThreadPoolWorker*> threads_;
129 friend class ThreadPoolWorker;
151 class WorkStealingWorker : public ThreadPoolWorker {