24 #ifndef LIBTHREADAR_FREEZER_HPP
25 #define LIBTHREADAR_FREEZER_HPP
void lock()
Request a "resource".
freezer & operator=(const freezer &ref)=delete
no assignment operator (made private)
bool waiting_thread() const
Return whether the freezer has at least a pending thread waiting for another thread to unlock it...
Wrapper around the Posix pthread_cond_t object and its associated mutex.
void unlock()
Release a "resource".
int get_value() const
Return the value of the freezer, that's to say the number of available "resources".
defines the condition class
void reset()
Reset to initial state releasing any thread that could wait on the freezer.
This is the only namespace used in libthreadar and all symbols provided by libthreadar are member of ...
Class freezer is a semaphore like construct that has no maximum value.
freezer()
freezer constuctor