/external/chromium_org/sandbox/win/src/ |
threadpool_unittest.cc | 20 Win2kThreadPool thread_pool; local 22 EXPECT_EQ(0, thread_pool.OutstandingWaits()); 28 EXPECT_FALSE(thread_pool.RegisterWait(0, event1, EmptyCallBack, &context)); 29 EXPECT_EQ(0, thread_pool.OutstandingWaits()); 31 EXPECT_TRUE(thread_pool.RegisterWait(this, event1, EmptyCallBack, &context)); 32 EXPECT_EQ(1, thread_pool.OutstandingWaits()); 33 EXPECT_TRUE(thread_pool.RegisterWait(this, event2, EmptyCallBack, &context)); 34 EXPECT_EQ(2, thread_pool.OutstandingWaits()); 36 EXPECT_TRUE(thread_pool.UnRegisterWaits(this)); 37 EXPECT_EQ(0, thread_pool.OutstandingWaits()) 45 Win2kThreadPool thread_pool; local 74 Win2kThreadPool thread_pool; local [all...] |
/art/runtime/ |
thread_pool.cc | 17 #include "thread_pool.h" 28 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, 30 : thread_pool_(thread_pool), 198 WorkStealingWorker::WorkStealingWorker(ThreadPool* thread_pool, const std::string& name, 200 : ThreadPoolWorker(thread_pool, name, stack_size), task_(NULL) {} 205 WorkStealingThreadPool* thread_pool = down_cast<WorkStealingThreadPool*>(thread_pool_); local 211 MutexLock mu(self, thread_pool->work_steal_lock_); 227 while (thread_pool->GetTaskCount(self) == 0) { 231 MutexLock mu(self, thread_pool->work_steal_lock_); 233 steal_from_task = thread_pool->FindTaskToStealFrom(self) [all...] |
/art/runtime/gc/collector/ |
mark_sweep.cc | 632 MarkStackTask(ThreadPool* thread_pool, MarkSweep* mark_sweep, size_t mark_stack_size, 635 thread_pool_(thread_pool), 744 CardScanTask(ThreadPool* thread_pool, MarkSweep* mark_sweep, accounting::SpaceBitmap* bitmap, 747 : MarkStackTask<false>(thread_pool, mark_sweep, mark_stack_size, mark_stack_obj), 789 ThreadPool* thread_pool = GetHeap()->GetThreadPool(); local 828 auto* task = new CardScanTask(thread_pool, this, space->GetMarkBitmap(), card_begin, 831 thread_pool->AddTask(self, task); 845 thread_pool->SetMaxActiveWorkers(thread_count - 1); 846 thread_pool->StartWorkers(self); 847 thread_pool->Wait(self, true, true) 945 ThreadPool* thread_pool = heap_->GetThreadPool(); local 1404 ThreadPool* thread_pool = GetHeap()->GetThreadPool(); local [all...] |