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