42template <
class T_channel,
class T_data>
55 bool open(T_channel channel,
size_t limit);
64 bool close(T_channel channel);
76 bool send(T_channel channel, T_data data);
85 T_data
receive(T_channel channel);
94 bool isEmpty(T_channel channel);
Definition DataChannels.h:43
virtual ~DataChannels()=default
T_data receive(T_channel channel)
Retrieves and removes the oldest data from the specified channel.
Definition DataChannels.cpp:50
bool isEmpty(T_channel channel)
Checks if a channel has no data available.
Definition DataChannels.cpp:58
bool send(T_channel channel, T_data data)
Sends data to the specified channel.
Definition DataChannels.cpp:40
bool close(T_channel channel)
Removes an existing channel and frees associated resources.
Definition DataChannels.cpp:35
bool open(T_channel channel, size_t limit)
Creates a new data channel with the specified capacity.
Definition DataChannels.cpp:25
Contains all classes and functions related to the Uniot Core.