35 void create(
unsigned int init_val,
bool countdown =
false,
bool blocking =
false);
50 void set(
unsigned int increment = 1);
59 bool get(
unsigned int& value)
const;
65 [[nodiscard]]
unsigned get()
const;
Definition EventCounter.h:13
handle_type getHandle() const
Gets the file descriptor to the object.
Definition EventCounter.h:74
EventCounter()
Default constructor.
~EventCounter()
Destructor.
unsigned get() const
Same as above but when it would block it return 0 otherwise the value is returned as described in the...
Definition EventCounter.h:79
void set(unsigned int increment=1)
Sets a new value by incrementing the existing one.
bool get(unsigned int &value) const
Gets the counter value and decrements it.
int handle_type
Handle type.
Definition EventCounter.h:18
void destroy()
Destroys the object/file descriptor.
void create(unsigned int init_val, bool countdown=false, bool blocking=false)
Creates the object annex file descriptor. Setting the initial value with 'initval'....
Sync provides a system-independent interface to build classes that act like monitors,...
Definition Sync.h:56
Definition Application.h:10