dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Core::details::SyncQueue< T, sp, Capacity > Class Template Reference

Public Types

using container_type = std::array<std::byte, (Capacity + 1) * sizeof(T)>
using mutex_type = std::mutex
using pmutex_type = std::conditional_t<sp, noOpMutex, std::mutex>
using value_type = T
using size_type = typename container_type::size_type
using reference = value_type &
using const_reference = value_type const &
using opt_value_type = std::optional<std::reference_wrapper<value_type>>

Public Member Functions

 SyncQueue (SyncQueue< T, sp, Capacity > const &)=delete
 SyncQueue (SyncQueue< T, sp, Capacity > &&)=delete
SyncQueue< T, sp, Capacity > & operator= (SyncQueue< T, sp, Capacity > const &)=delete
SyncQueue< T, sp, Capacity > & operator= (SyncQueue< T, sp, Capacity > &&)=delete
bool empty () const noexcept
bool full () const noexcept
size_type size () const noexcept
constexpr size_type capacity () const noexcept
int createReadEventFd (bool nonblock=false)
int readEventFd () const noexcept
void forceQuit () noexcept
template<typename ... Args>
void emplace (Args &&... args)
opt_value_type front ()
opt_value_type tryFront () noexcept
void pop ()
void setSpinWaitCount (uint32_t counter) noexcept
void disableSpinWait () noexcept
uint32_t spinWaitCount () const noexcept

The documentation for this class was generated from the following file: