#include "channel.hpp"
#include "storage.hpp"
#include <cstdlib>
Go to the source code of this file.
◆ static_channel
template<typename T , std::size_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
-
T | The type of the elements. |
Capacity | The maximum number of elements the channel can hold before blocking. Must be greater than zero. |