Rise
The Vieneo Province
Loading...
Searching...
No Matches
Rendering::BoundedSpscQueue< T, Capacity > Class Template Reference

#include <BoundedSpscQueue.h>

Collaboration diagram for Rendering::BoundedSpscQueue< T, Capacity >:
[legend]

Public Member Functions

T * Reserve ()
void Publish ()
const T * Front () const
void Release ()

Private Attributes

std::array< T, Capacity+1 > slots {}
std::atomic< std::size_t > write {0}
std::atomic< std::size_t > read {0}

Detailed Description

template<class T, std::size_t Capacity>
class Rendering::BoundedSpscQueue< T, Capacity >

Definition at line 10 of file BoundedSpscQueue.h.

Member Function Documentation

◆ Front()

template<class T, std::size_t Capacity>
const T * Rendering::BoundedSpscQueue< T, Capacity >::Front ( ) const
inline

Definition at line 23 of file BoundedSpscQueue.h.

Here is the caller graph for this function:

◆ Publish()

template<class T, std::size_t Capacity>
void Rendering::BoundedSpscQueue< T, Capacity >::Publish ( )
inline

Definition at line 22 of file BoundedSpscQueue.h.

Here is the caller graph for this function:

◆ Release()

template<class T, std::size_t Capacity>
void Rendering::BoundedSpscQueue< T, Capacity >::Release ( )
inline

Definition at line 28 of file BoundedSpscQueue.h.

Here is the caller graph for this function:

◆ Reserve()

template<class T, std::size_t Capacity>
T * Rendering::BoundedSpscQueue< T, Capacity >::Reserve ( )
inline

Definition at line 17 of file BoundedSpscQueue.h.

Here is the caller graph for this function:

Member Data Documentation

◆ read

template<class T, std::size_t Capacity>
std::atomic<std::size_t> Rendering::BoundedSpscQueue< T, Capacity >::read {0}
private

Definition at line 15 of file BoundedSpscQueue.h.

◆ slots

template<class T, std::size_t Capacity>
std::array<T,Capacity+1> Rendering::BoundedSpscQueue< T, Capacity >::slots {}
private

Definition at line 13 of file BoundedSpscQueue.h.

◆ write

template<class T, std::size_t Capacity>
std::atomic<std::size_t> Rendering::BoundedSpscQueue< T, Capacity >::write {0}
private

Definition at line 14 of file BoundedSpscQueue.h.


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