C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::ChannelHandle< T > Class Template Reference

Overview

template<typename T>
class pw::async2::ChannelHandle< T >

Channel handle for a particular type T.

Inheritance diagram for pw::async2::ChannelHandle< T >:
pw::async2::internal::BaseChannelHandle pw::async2::McChannelHandle< T > pw::async2::MpChannelHandle< T > pw::async2::MpmcChannelHandle< T > pw::async2::MpscChannelHandle< T > pw::async2::SpmcChannelHandle< T > pw::async2::SpscChannelHandle< T >

Public Member Functions

 ChannelHandle (const ChannelHandle &)=default
 
ChannelHandleoperator= (const ChannelHandle &)=default
 
 ChannelHandle (ChannelHandle &&)=default
 
ChannelHandleoperator= (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)
 
BaseChannelHandleoperator= (const BaseChannelHandle &other)
 
 BaseChannelHandle (BaseChannelHandle &&other) noexcept
 
BaseChannelHandleoperator= (BaseChannelHandle &&other) noexcept
 
constexpr BaseChannelchannel () const PW_LOCK_RETURNED(channel_)
 

Member Function Documentation

◆ CreateReceiver()

template<typename T >
Receiver< T > pw::async2::ChannelHandle< T >::CreateReceiver ( )
inlineprotected

Creates a new receiver for the channel, increasing the active receiver count. Cannot be called following Release.

◆ CreateSender()

template<typename T >
Sender< T > pw::async2::ChannelHandle< T >::CreateSender ( )
inlineprotected

Creates a new sender for the channel, increasing the active sender count. Cannot be called following Release.


The documentation for this class was generated from the following file: