|
libxr
1.0
Want to be the best embedded framework
|
Pipe:基于共享字节队列将 WritePort → ReadPort 连接起来的单向管道。 More...
#include "libxr_def.hpp"#include "libxr_rw.hpp"Go to the source code of this file.
Data Structures | |
| class | LibXR::Pipe |
| 基于共享队列,由 ReadPort + WritePort 组成的单向管道。 More... | |
Namespaces | |
| namespace | LibXR |
| LibXR 命名空间 | |
Pipe:基于共享字节队列将 WritePort → ReadPort 连接起来的单向管道。
Pipe: single-direction pipe that bridges WritePort → ReadPort over a shared byte queue.
本类让 WritePort 与 ReadPort 共享同一条无锁字节队列,使写端写入的数据可被读端直接读取, 无需端口间中间拷贝。 This class wires a WritePort and a ReadPort to the same underlying lock-free byte queue so that data written by the writer becomes readable by the reader without intermediate copies.
Definition in file libxr_pipe.hpp.