RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Classes | Enumerations
OsEventFlags.h File Reference

Lightweight C++ wrapper for the RTOS event-flag-group primitive. More...

#include <cstdint>
#include <climits>
#include "OsAbstraction.h"
#include "OsUtility.h"

Go to the source code of this file.

Classes

class  OsEventFlags< kReserved >
 Eager-init event-flag group with modern C++ public surface. More...
 

Enumerations

enum class  WaitMode : uint8_t { Any , All }
 Selects ANY-of-bits vs ALL-of-bits semantics for Wait calls. More...
 

Detailed Description

Lightweight C++ wrapper for the RTOS event-flag-group primitive.

Thread-safety: internally thread-safe; the underlying FreeRTOS event group is already MT-safe, so no extra mutex is layered on top.

Allocation: the underlying RTOS handle is created eagerly in the constructor; no heap allocation in Set / Clear / Wait.

Public surface uses modern C++ types (uint32_t, enum class WaitMode) — no OS_Ulong, OS_OR, OS_AND, OS_WAIT_FOREVER leakage. Pass UINT32_MAX to wait forever.

Enumeration Type Documentation

◆ WaitMode

enum class WaitMode : uint8_t
strong

Selects ANY-of-bits vs ALL-of-bits semantics for Wait calls.

Enumerator
Any 

Wake when any of the requested bits are set.

All 

Wake only when all of the requested bits are set.