C++ Channel
Loading...
Searching...
No Matches
Typedefs
static_channel.hpp File Reference
#include "channel.hpp"
#include "storage.hpp"
#include <cstdlib>
Include dependency graph for static_channel.hpp:

Go to the source code of this file.

Typedefs

template<typename T , std::size_t Capacity>
using msd::static_channel = channel< T, array_storage< T, Capacity > >
 Thread-safe container for sharing data between threads.
 

Typedef Documentation

◆ static_channel

template<typename T , std::size_t Capacity>
using msd::static_channel = typedef channel<T, array_storage<T, Capacity> >

Thread-safe container for sharing data between threads.

  • Allocates elements on the stack.
  • Can be used so that it does not throw exceptions.
  • Not movable, not copyable.
  • Includes a blocking input iterator.
  • Always buffered (with Capacity).
Template Parameters
TThe type of the elements.
CapacityThe maximum number of elements the channel can hold before blocking. Must be greater than zero.