Fixed capacity storage for an asynchronous channel which supports multiple producers and multiple consumers.
ChannelStorage must outlive the channel in which it is used.
Public Member Functions | |
| bool | active () const |
| constexpr uint16_t | capacity () const |
Friends | |
| template<typename U , uint16_t kCap> | |
| std::tuple< SpscChannelHandle< U >, Sender< U >, Receiver< U > > | CreateSpscChannel (ChannelStorage< U, kCap > &storage) |
| template<typename U , uint16_t kCap> | |
| std::tuple< MpscChannelHandle< U >, Receiver< U > > | CreateMpscChannel (ChannelStorage< U, kCap > &storage) |
| template<typename U , uint16_t kCap> | |
| std::tuple< SpmcChannelHandle< U >, Sender< U > > | CreateSpmcChannel (ChannelStorage< U, kCap > &storage) |
| template<typename U , uint16_t kCap> | |
| MpmcChannelHandle< U > | CreateMpmcChannel (ChannelStorage< U, kCap > &storage) |