14 #ifndef STXXL_COMMON_SEMAPHORE_HEADER
15 #define STXXL_COMMON_SEMAPHORE_HEADER
84 #endif // !STXXL_COMMON_SEMAPHORE_HEADER
int v
value of the semaphore
void unlock()
unlock mutex hold prematurely
mutex m_mutex
mutex for condition variable
uint_pair & operator++()
prefix increment operator (directly manipulates the integer parts)
Aquire a lock that's valid until the end of scope.
#define STXXL_BEGIN_NAMESPACE
uint_pair & operator--()
prefix decrement operator (directly manipulates the integer parts)
int decrement()
function does NOT block but simply decrements the semaphore should not be used instead of down – only...
semaphore(int init_value=1)
construct semaphore
#define STXXL_END_NAMESPACE
condition_variable m_cond
condition variable