GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::SPSCQueue< T, N >::Producer Class Reference

#include <GREM/core/data/SPSCQueue.hpp>

Public Member Functions

template<typename Function>
requires (noexcept(std::forward<Function>(function)(std::declval<T&>())))
void waitEnqueueWith (Function &&function)
template<typename U>
requires (std::is_nothrow_assignable_v<T&, decltype(std::forward<U>(value))>)
void waitEnqueue (U &&value)
template<typename Function>
requires (noexcept(std::forward<Function>(function)(std::declval<T&>())))
bool tryEnqueueWith (Function &&function)
template<typename U>
requires (std::is_nothrow_assignable_v<T&, decltype(std::forward<U>(value))>)
bool tryEnqueue (U &&value)

Member Function Documentation

◆ waitEnqueueWith()

template<typename T, std::size_t N>
template<typename Function>
requires (noexcept(std::forward<Function>(function)(std::declval<T&>())))
void grem::SPSCQueue< T, N >::Producer::waitEnqueueWith ( Function && function)
inline

◆ waitEnqueue()

template<typename T, std::size_t N>
template<typename U>
requires (std::is_nothrow_assignable_v<T&, decltype(std::forward<U>(value))>)
void grem::SPSCQueue< T, N >::Producer::waitEnqueue ( U && value)
inline

◆ tryEnqueueWith()

template<typename T, std::size_t N>
template<typename Function>
requires (noexcept(std::forward<Function>(function)(std::declval<T&>())))
bool grem::SPSCQueue< T, N >::Producer::tryEnqueueWith ( Function && function)
inline

◆ tryEnqueue()

template<typename T, std::size_t N>
template<typename U>
requires (std::is_nothrow_assignable_v<T&, decltype(std::forward<U>(value))>)
bool grem::SPSCQueue< T, N >::Producer::tryEnqueue ( U && value)
inlinenodiscard

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