C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::internal::BaseChannelHandle Class Reference

Overview

A handle to a channel, used to create senders and receivers.

After all desired senders and receivers are created, the handle should be released. The channel will remain allocated and open as long as at least one sender and one receiver are alive.

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

Public Member Functions

 BaseChannelHandle (const BaseChannelHandle &other)
 
BaseChannelHandleoperator= (const BaseChannelHandle &other)
 
 BaseChannelHandle (BaseChannelHandle &&other) noexcept
 
BaseChannelHandleoperator= (BaseChannelHandle &&other) noexcept
 
bool is_open () const
 
void Close ()
 
void Release ()
 
constexpr BaseChannelbase_channel () const PW_LOCK_RETURNED(channel_)
 

Protected Member Functions

 BaseChannelHandle (BaseChannel &channel)
 

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