Home
last modified time | relevance | path

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

/art/runtime/
Dthread_pool.cc29 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, in ThreadPoolWorker() function in art::ThreadPoolWorker
45 ThreadPoolWorker::~ThreadPoolWorker() { in ~ThreadPoolWorker()
49 void ThreadPoolWorker::Run() { in Run()
59 void* ThreadPoolWorker::Callback(void* arg) { in Callback()
60 ThreadPoolWorker* worker = reinterpret_cast<ThreadPoolWorker*>(arg); in Callback()
95 … threads_.push_back(new ThreadPoolWorker(this, worker_name, ThreadPoolWorker::kDefaultStackSize)); in ThreadPool()
206 : ThreadPoolWorker(thread_pool, name, stack_size), task_(nullptr) {} in WorkStealingWorker()
286 ThreadPoolWorker::kDefaultStackSize)); in WorkStealingThreadPool()
Dthread_pool.h51 class ThreadPoolWorker {
60 virtual ~ThreadPoolWorker();
63 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
74 DISALLOW_COPY_AND_ASSIGN(ThreadPoolWorker);
134 std::vector<ThreadPoolWorker*> threads_;
142 friend class ThreadPoolWorker;
164 class WorkStealingWorker : public ThreadPoolWorker {