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 () | |
Allow default construction. More... | |
Private Attributes | |
sem_t | sem |
Edsger Dijkstra's counting semaphore.
Definition at line 98 of file semaphore.h.
|
inline |
ctor
Definition at line 101 of file semaphore.h.
References init_semaphore().
|
inline |
dtor
Definition at line 104 of file semaphore.h.
References __TBB_ASSERT_EX, and sem.
Definition at line 117 of file semaphore.h.
References __TBB_ASSERT_EX, and sem.
Referenced by semaphore().
|
inline |
wait/acquire
Definition at line 109 of file semaphore.h.
References __TBB_ASSERT, and sem.
Referenced by tbb::internal::input_buffer::sema_P().
|
inline |
post/release
Definition at line 114 of file semaphore.h.
References sem.
Referenced by tbb::internal::input_buffer::sema_V().
|
private |
Definition at line 116 of file semaphore.h.
Referenced by init_semaphore(), P(), V(), and ~semaphore().