tunnel:C ++中的简单通道通信

时间:2021-06-20 17:29:03
【文件属性】:
文件名称:tunnel:C ++中的简单通道通信
文件大小:11KB
文件格式:ZIP
更新时间:2021-06-20 17:29:03
C++ 隧道 C++14中简单且无锁的通道通信 API 基于 Rust 通道系统,用于线程之间的通信。 该库在内部使用 mpsc 队列以无锁方式存储通道和端口之间的消息。 该库应该使用 clang (-std=c++1y) 和 gcc (-std=gnu++1y) 构建。 一个简单的并行示例 # include < tunnel> # include < iostream> # include < thread> int main () { // instanciate a new tunnel auto comm = tunnel::make(); // get the channel auto chan = std::move (std::get< 0>(comm)); // get the port aut
【文件预览】:
tunnel-master
----.travis.yml(343B)
----.gitmodules(119B)
----tests()
--------src()
--------CMakeLists.txt(2KB)
----include()
--------tunnel(10KB)
--------priv()
----LICENSE(1KB)
----.gitignore(242B)
----README.md(2KB)

网友评论