|
faio
faio 公共 C++ 接口参考
|
MPSC 的可复制发送端。 更多...
Public 成员函数 | |
| sender (const sender &other)=default | |
| 构造sender对象。 | |
| sender (sender &&other) noexcept | |
| 构造sender对象。 | |
| void | close () |
| 关闭句柄或通道端点。 | |
| auto | send (T value) const |
| 在通道中发送一个值,满队列时挂起。 | |
| expected< bool > | try_send (T value) const |
| 立即尝试发送或将值入队。 | |
MPSC 的可复制发送端。
|
default |
构造sender对象。
| other | 被复制、移动或比较的同类型对象;移动后源对象按该类型约定变空。 |
|
noexcept |
构造sender对象。
| other | 被复制、移动或比较的同类型对象;移动后源对象按该类型约定变空。 |
| void faio::sync::mpsc< T, S >::sender::close | ( | ) |
| auto faio::sync::mpsc< T, S >::sender::send | ( | T | value | ) | const |
在通道中发送一个值,满队列时挂起。
| value | 要设置、编码或移动发送的值;具体类型见当前重载签名。 |
| expected< bool > faio::sync::mpsc< T, S >::sender::try_send | ( | T | value | ) | const |
立即尝试发送或将值入队。
| value | 要设置、编码或移动发送的值;具体类型见当前重载签名。 |