Lines Matching defs:ThreadPool
36 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name,
99 void ThreadPool::AddTask(Thread* self, Task* task) {
108 void ThreadPool::RemoveAllTasks(Thread* self) {
113 ThreadPool::ThreadPool(const char* name, size_t num_threads, bool create_peers)
138 void ThreadPool::SetMaxActiveWorkers(size_t threads) {
144 ThreadPool::~ThreadPool() {
158 void ThreadPool::StartWorkers(Thread* self) {
166 void ThreadPool::StopWorkers(Thread* self) {
171 Task* ThreadPool::GetTask(Thread* self) {
203 Task* ThreadPool::TryGetTask(Thread* self) {
208 Task* ThreadPool::TryGetTaskLocked() {
217 void ThreadPool::Wait(Thread* self, bool do_work, bool may_hold_locks) {
237 size_t ThreadPool::GetTaskCount(Thread* self) {
242 void ThreadPool::SetPthreadPriority(int priority) {