Home
last modified time | relevance | path

Searched refs:sem_ (Results 1 - 11 of 11) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_sem_test.cpp12 sem_t sem_; member in ThreadSemTest
27 EXPECT_EQ(0, sem_init(&sem_, 0, 0));
32 EXPECT_EQ(0, sem_destroy(&sem_));
45 EXPECT_EQ(0, pthread_create(&thread1, nullptr, ThreadFn, &sem_)); in HWTEST_F()
46 EXPECT_EQ(0, pthread_create(&thread2, nullptr, ThreadFn, &sem_)); in HWTEST_F()
48 EXPECT_EQ(0, sem_post(&sem_)); in HWTEST_F()
49 EXPECT_EQ(0, sem_post(&sem_)); in HWTEST_F()
64 EXPECT_EQ(-1, sem_timedwait(&sem_, &ts_)); in HWTEST_F()
66 EXPECT_EQ(-1, sem_timedwait(&sem_, &ts_)); in HWTEST_F()
69 EXPECT_EQ(-1, sem_timedwait(&sem_, in HWTEST_F()
[all...]
/third_party/skia/third_party/externals/tint/src/
H A Dprogram.cc42 sem_(std::move(program.sem_)), in Program()
67 sem_ = std::move(builder.Sem()); in Program()
92 sem_ = std::move(program.sem_); in operator =()
H A Dprogram_builder.cc39 sem_(std::move(rhs.sem_)), in ProgramBuilder()
56 sem_ = std::move(rhs.sem_); in operator =()
69 builder.sem_ = sem::Info::Wrap(program->Sem()); in Wrap()
H A Dprogram.h96 return sem_; in Sem()
184 sem::Info sem_; member in tint::Program
H A Dprogram_builder.h255 return sem_; in Sem()
261 return sem_; in Sem()
2560 sem::Info sem_; member in tint::ProgramBuilder
/third_party/libuv/src/unix/
H A Dthread.c539 static int uv__custom_sem_init(uv_sem_t* sem_, unsigned int value) { in uv__custom_sem_init() argument
559 *(uv_semaphore_t**)sem_ = sem; in uv__custom_sem_init()
564 static void uv__custom_sem_destroy(uv_sem_t* sem_) { in uv__custom_sem_destroy() argument
567 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_destroy()
574 static void uv__custom_sem_post(uv_sem_t* sem_) { in uv__custom_sem_post() argument
577 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_post()
586 static void uv__custom_sem_wait(uv_sem_t* sem_) { in uv__custom_sem_wait() argument
589 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_wait()
598 static int uv__custom_sem_trywait(uv_sem_t* sem_) { in uv__custom_sem_trywait() argument
601 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_trywait()
[all...]
/third_party/node/deps/uv/src/unix/
H A Dthread.c546 static int uv__custom_sem_init(uv_sem_t* sem_, unsigned int value) { in uv__custom_sem_init() argument
566 *(uv_semaphore_t**)sem_ = sem; in uv__custom_sem_init()
571 static void uv__custom_sem_destroy(uv_sem_t* sem_) { in uv__custom_sem_destroy() argument
574 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_destroy()
581 static void uv__custom_sem_post(uv_sem_t* sem_) { in uv__custom_sem_post() argument
584 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_post()
593 static void uv__custom_sem_wait(uv_sem_t* sem_) { in uv__custom_sem_wait() argument
596 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_wait()
605 static int uv__custom_sem_trywait(uv_sem_t* sem_) { in uv__custom_sem_trywait() argument
608 sem = *(uv_semaphore_t**)sem_; in uv__custom_sem_trywait()
[all...]
/third_party/node/src/
H A Dnode_watchdog.cc236 uv_sem_wait(&instance.sem_); in RunSigintWatchdog()
246 uv_sem_post(&instance.sem_); in HandleSignal()
359 uv_sem_post(&sem_); in Stop()
405 CHECK_EQ(0, uv_sem_init(&sem_, 0)); in SigintWatchdogHelper()
418 uv_sem_destroy(&sem_); in ~SigintWatchdogHelper()
H A Dnode_watchdog.h138 uv_sem_t sem_; member in node::SigintWatchdogHelper
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
H A Dwaiter.cc237 if (sem_init(&sem_, 0, 0) != 0) { in Waiter()
244 if (sem_destroy(&sem_) != 0) { in ~Waiter()
275 if (sem_wait(&sem_) == 0) break; in Wait()
279 if (sem_timedwait(&sem_, &abs_timeout) == 0) break; in Wait()
298 if (sem_post(&sem_) != 0) { // Wake any semaphore waiter. in Poke()
H A Dwaiter.h125 sem_t sem_; member in absl::synchronization_internal::Waiter

Completed in 16 milliseconds