1 #ifndef NDNPH_PORT_QUEUE_NULL_HPP
2 #define NDNPH_PORT_QUEUE_NULL_HPP
4 #include "../../core/common.hpp"
7 namespace port_queue_null {
10 template<
typename T,
size_t capacity>
19 std::tuple<Item, bool>
pop() {
20 return std::make_tuple(T(),
false);
26 #ifdef NDNPH_PORT_QUEUE_NULL
28 template<
typename T,
size_t capacity>
29 using SafeQueue = port_queue_null::SafeQueue<T, capacity>;
Generic thread-safe queue stub.
Definition: null.hpp:11
bool push(Item)
Definition: null.hpp:15
std::tuple< Item, bool > pop()
Definition: null.hpp:19
T Item
Definition: null.hpp:13
esp8266ndn::ndnph_port_freertos::SafeQueue< T, capacity > SafeQueue
Definition: queue-freertos.hpp:59