Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Edsger Dijkstra's counting semaphore. More...
#include <semaphore.h>
Public Member Functions | |
semaphore (int start_cnt_=0) | |
ctor More... | |
~semaphore () | |
dtor More... | |
void | P () |
wait/acquire More... | |
void | V () |
post/release More... | |
Private Member Functions | |
void | init_semaphore (int start_cnt_) |
![]() | |
no_copy (const no_copy &)=delete | |
no_copy ()=default | |
Private Attributes | |
sem_t | sem |
Edsger Dijkstra's counting semaphore.
Definition at line 94 of file semaphore.h.
|
inline |
ctor
Definition at line 97 of file semaphore.h.
References init_semaphore().
|
inline |
dtor
Definition at line 100 of file semaphore.h.
References __TBB_ASSERT_EX, and sem.
Definition at line 113 of file semaphore.h.
References __TBB_ASSERT_EX, and sem.
Referenced by semaphore().
|
inline |
wait/acquire
Definition at line 105 of file semaphore.h.
References __TBB_ASSERT, and sem.
Referenced by tbb::internal::input_buffer::sema_P().
|
inline |
post/release
Definition at line 110 of file semaphore.h.
References sem.
Referenced by tbb::internal::input_buffer::sema_V().
|
private |
Definition at line 112 of file semaphore.h.
Referenced by init_semaphore(), P(), V(), and ~semaphore().