1 #ifndef KINEMATICS_CONCURRENTQUEUE_HPP     2 #define KINEMATICS_CONCURRENTQUEUE_HPP     4 #include <condition_variable>    26     void push(
const T& element);
    33     void push(T&& element);
    49     void async_pop(
const std::function<
void(
const T&)>& handler);
    64     std::size_t 
size() 
const;
    71     std::function<void(const T&)> handler;
    81     mutable std::mutex queue_mutex;
    86     std::condition_variable notifier;
    92 #include "ConcurrentQueue.ipp" T pop()
Remove the oldest element from the queue. Blocks if no element is available. 
bool empty() const 
Check whether the queue is empty. 
A thread safe queue that supports both synchronous pop and asynchronous pop. It's not allowed to use ...
Definition: ConcurrentQueue.hpp:18
void async_pop(const std::function< void(const T &)> &handler)
Asynchronously pop an element from the queue. 
std::size_t size() const 
Return how many elements are currently in the queue. 
void push(const T &element)
Pushes element into the queue.