Channel handle for a particular type T.
Public Member Functions | |
| ChannelHandle (const ChannelHandle &)=default | |
| ChannelHandle & | operator= (const ChannelHandle &)=default |
| ChannelHandle (ChannelHandle &&)=default | |
| ChannelHandle & | operator= (ChannelHandle &&)=default |
Public Member Functions inherited from pw::async2::internal::BaseChannelHandle | |
| BaseChannelHandle (const BaseChannelHandle &other) | |
| bool | is_open () const |
| void | Close () |
| void | Release () |
Protected Member Functions | |
| ChannelHandle (internal::Channel< T > &channel) | |
| Sender< T > | CreateSender () |
| Receiver< T > | CreateReceiver () |
Protected Member Functions inherited from pw::async2::internal::BaseChannelHandle | |
| BaseChannelHandle (BaseChannel &channel) | |
| BaseChannelHandle & | operator= (const BaseChannelHandle &other) |
| BaseChannelHandle (BaseChannelHandle &&other) noexcept | |
| BaseChannelHandle & | operator= (BaseChannelHandle &&other) noexcept |
| constexpr BaseChannel * | channel () const PW_LOCK_RETURNED(channel_) |
|
inlineprotected |
Creates a new receiver for the channel, increasing the active receiver count. Cannot be called following Release.
|
inlineprotected |
Creates a new sender for the channel, increasing the active sender count. Cannot be called following Release.