Home
last modified time | relevance | path

Searched refs:semaphore_ (Results 1 – 6 of 6) sorted by relevance

/external/chromium/chrome/browser/debugger/
Ddevtools_remote_listen_socket_unittest.cc74 : semaphore_(NULL), in DevToolsRemoteListenSocketTester()
86 semaphore_ = CreateSemaphore(NULL, 0, kMaxQueueSize, NULL); in SetUp()
92 semaphore_ = sem_open(kSemaphoreName, O_CREAT, 0, 0); in SetUp()
93 ASSERT_NE(SEM_FAILED, semaphore_); in SetUp()
143 CloseHandle(semaphore_); in TearDown()
144 semaphore_ = 0; in TearDown()
148 semaphore_ = NULL; in TearDown()
164 ReleaseSemaphore(semaphore_, 1, NULL); in ReportAction()
169 ASSERT_EQ(0, sem_post(semaphore_)); in ReportAction()
175 DWORD ret = ::WaitForSingleObject(semaphore_, timeout); in NextAction()
[all …]
Ddevtools_remote_listen_socket_unittest.h107 HANDLE semaphore_; variable
110 sem_t* semaphore_; variable
/external/v8/test/cctest/
Dtest-log.cc171 semaphore_(v8::internal::OS::CreateSemaphore(0)),
175 virtual ~LoopingThread() { delete semaphore_; }
186 bool WaitForRunning() { return semaphore_->Wait(1000000); }
197 void SignalRunning() { semaphore_->Signal(); }
200 v8::internal::Semaphore* semaphore_;
257 semaphore_(v8::internal::OS::CreateSemaphore(0)),
261 ~TestSampler() { delete semaphore_; }
267 void Tick(v8::internal::TickSample*) { semaphore_->Signal(); }
269 bool WaitForTick() { return semaphore_->Wait(1000000); }
276 v8::internal::Semaphore* semaphore_;
Dtest-threads.cc149 semaphore_(semaphore) { in ThreadIdValidationThread()
162 semaphore_->Signal(); in Run()
169 i::Semaphore* semaphore_; member in ThreadIdValidationThread
Dtest-lockers.cc128 semaphore_(i::OS::CreateSemaphore(0)), in JoinableThread()
133 delete semaphore_; in ~JoinableThread()
141 semaphore_->Wait(); in Join()
156 joinable_thread_->semaphore_->Signal(); in Run()
164 i::Semaphore* semaphore_; member in JoinableThread
/external/v8/src/
Dplatform-macos.cc695 semaphore_create(mach_task_self(), &semaphore_, SYNC_POLICY_FIFO, count); in MacOSSemaphore()
699 semaphore_destroy(mach_task_self(), semaphore_); in ~MacOSSemaphore()
705 void Wait() { semaphore_wait(semaphore_); } in Wait()
709 void Signal() { semaphore_signal(semaphore_); } in Signal()
712 semaphore_t semaphore_; member in v8::internal::MacOSSemaphore
720 return semaphore_timedwait(semaphore_, ts) != KERN_OPERATION_TIMED_OUT; in Wait()