Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 5 of 5) sorted by relevance

/oneTBB/src/tbb/
H A Dsemaphore.h128 class semaphore : no_copy {
132 semaphore(size_t start_cnt_ = 0) {init_semaphore(start_cnt_);}
134 ~semaphore() {CloseHandle( sem );} in ~semaphore()
147 class semaphore : no_copy {
150 semaphore(int start_cnt_ = 0) { my_sem = dispatch_semaphore_create(start_cnt_); }
152 ~semaphore() { dispatch_release(my_sem); } in ~semaphore()
166 class semaphore : no_copy {
169 semaphore(int start_cnt_ = 0 ) { init_semaphore( start_cnt_ ); }
172 ~semaphore() { in ~semaphore()
234 using binary_semaphore = semaphore;
H A Dconcurrent_monitor_mutex.h41 get_semaphore().~semaphore(); in destroy()
91 semaphore& get_semaphore() { in get_semaphore()
95 new (my_semaphore.begin()) semaphore(); in get_semaphore()
105 aligned_space<semaphore> my_semaphore{};
H A Dconcurrent_monitor.h153 if (this->my_skipped_wakeup) semaphore().P(); in ~sleep_node()
154 semaphore().~binary_semaphore(); in ~sleep_node()
158 binary_semaphore& semaphore() { return *sema.begin(); } in semaphore() function
170 semaphore().P(); in wait()
178 semaphore().P(); in reset()
182 semaphore().V(); in notify()
H A DCMakeLists.txt38 semaphore.cpp
/oneTBB/test/tbb/
H A Dtest_semaphore.cpp34 using tbb::detail::r1::semaphore;
44 semaphore& mySem;
51 Body( int nThread, int nIter, semaphore& sem, in Body()
82 semaphore my_sem(sem_init_cnt); in test_semaphore()
154 semaphore& my_sem;
155 semaphore& next_sem;
166 semaphore& m_sem, in FilterBase()
167 semaphore& n_sem, in FilterBase()
254 semaphore p_sem; in test_producer_consumer()
255 semaphore c_sem; in test_producer_consumer()