Lines Matching refs:WorkerThread
81 std::unique_ptr<WorkerThread*[]> threads(new (std::nothrow) in Create()
82 WorkerThread*[num_threads]); in Create()
93 std::unique_ptr<WorkerThread*[]> threads, in ThreadPool()
124 class ThreadPool::WorkerThread : public Allocable { class in libgav1::ThreadPool
127 explicit WorkerThread(ThreadPool* pool);
130 WorkerThread(const WorkerThread&) = delete;
131 WorkerThread& operator=(const WorkerThread&) = delete;
135 ~WorkerThread() = default;
160 ThreadPool::WorkerThread::WorkerThread(ThreadPool* pool) : pool_(pool) {} in WorkerThread() function in libgav1::ThreadPool::WorkerThread
164 bool ThreadPool::WorkerThread::Start() { in Start()
178 void ThreadPool::WorkerThread::Join() { in Join()
183 unsigned int ThreadPool::WorkerThread::ThreadBody(void* arg) { in ThreadBody()
184 auto* thread = static_cast<WorkerThread*>(arg); in ThreadBody()
189 void ThreadPool::WorkerThread::SetupName() { in SetupName()
195 bool ThreadPool::WorkerThread::Start() { in Start()
199 void ThreadPool::WorkerThread::Join() { pthread_join(thread_, nullptr); } in Join()
201 void* ThreadPool::WorkerThread::ThreadBody(void* arg) { in ThreadBody()
202 auto* thread = static_cast<WorkerThread*>(arg); in ThreadBody()
207 void ThreadPool::WorkerThread::SetupName() { in SetupName()
239 void ThreadPool::WorkerThread::Run() { in Run()
247 threads_[i] = new (std::nothrow) WorkerThread(this); in StartWorkers()