10 #ifndef __embedded_rpc__static_queue__ 11 #define __embedded_rpc__static_queue__ 32 template <
class T, u
int32_t elementCount>
109 [(
sizeof(T) +
sizeof(uint64_t) - 1U) /
sizeof(uint64_t)];
120 #endif // defined(__embedded_rpc__static_queue__) uint64_t m_storage[elementCount][(sizeof(T)+sizeof(uint64_t)-1U)/sizeof(uint64_t)]
Definition: erpc_static_queue.hpp:109
uint32_t volatile m_head
Definition: erpc_static_queue.hpp:112
StaticQueue(void)
Constructor of StaticQueue class.
Definition: erpc_static_queue.hpp:41
uint32_t size(void)
This function returns number of elements in queue.
Definition: erpc_static_queue.hpp:98
Definition: erpc_arbitrated_client_manager.hpp:25
bool add(T element)
This function adds element to queue.
Definition: erpc_static_queue.hpp:63
uint32_t volatile m_tail
Definition: erpc_static_queue.hpp:113
~StaticQueue(void)
Destructor of StaticQueue class.
Definition: erpc_static_queue.hpp:54
Template class which implements static queue as ring buffer.
Definition: erpc_static_queue.hpp:33
uint32_t m_capacity
Definition: erpc_static_queue.hpp:111