|
libfly
6.2.2
C++20 utility library for Linux, macOS, and Windows
|
#include <concurrent_queue.hpp>


Protected Member Functions | |
| void | push_internal (T &&) override |
| void | pop_internal (T &) override |
Additional Inherited Members | |
Public Types inherited from fly::detail::ConcurrentContainer< T, std::queue< T > > | |
| using | size_type = typename Container::size_type |
| using | value_type = T |
Public Member Functions inherited from fly::detail::ConcurrentContainer< T, std::queue< T > > | |
| virtual | ~ConcurrentContainer ()=default |
| void | push (T &&item) |
| void | pop (T &item) |
| bool | pop (T &item, std::chrono::duration< R, P > duration) |
| bool | empty () const |
| size_type | size () const |
Protected Attributes inherited from fly::detail::ConcurrentContainer< T, std::queue< T > > | |
| std::mutex | m_container_mutex |
| std::queue< T > | m_container |
Wrapper around a std::queue to provide thread safe access.
|
overrideprotectedvirtual |
Implementation-specific method to pop an item from the container.
| item | Location to store the popped item. |
Implements fly::detail::ConcurrentContainer< T, std::queue< T > >.
|
overrideprotectedvirtual |
Implementation-specific method to move an item onto the container.
| item | Item to push onto the container. |
Implements fly::detail::ConcurrentContainer< T, std::queue< T > >.