Fixed capacity storage for an asynchronous channel which supports multiple producers and multiple consumers.
ChannelStorage is used to create a channel vi
ChannelStorage must outlive the channel in which it is used.
Public Member Functions | |
| bool | active () const |
Public Member Functions inherited from pw::async2::internal::Channel< T > | |
| bool | closed () const |
Additional Inherited Members | |
Static Public Member Functions inherited from pw::async2::internal::Channel< T > | |
| static Channel * | Allocated (Allocator &alloc, uint16_t capacity) |
Protected Member Functions inherited from pw::async2::internal::Channel< T > | |
| Channel (FixedDeque< T > &&deque) | |
| template<size_t kAlignment, size_t kCapacity> | |
| Channel (containers::Storage< kAlignment, kCapacity > &storage) | |
| uint16_t | ref_count () const |
|
inline |
Returns true if this channel storage is in use. If false, the storage can either be reused or safely destroyed.