File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ MIT licensed] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://github.com/mutouyun/cpp-ipc/blob/master/LICENSE )
4
4
[ ![ Build Status] ( https://github.com/mutouyun/cpp-ipc/actions/workflows/c-cpp.yml/badge.svg )] ( https://github.com/mutouyun/cpp-ipc/actions )
5
5
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/github/mutouyun/cpp-ipc?branch=master&svg=true )] ( https://ci.appveyor.com/project/mutouyun/cpp-ipc )
6
+ [ ![ Vcpkg package] ( https://img.shields.io/badge/Vcpkg-package-blueviolet )] ( https://github.com/microsoft/vcpkg/tree/master/ports/cpp-ipc )
6
7
7
8
A high-performance inter-process communication using shared memory on Linux/Windows.
8
9
使用共享内存的跨平台(Linux/Windows,x86/x64/ARM)高性能IPC通讯库。
@@ -14,6 +15,7 @@ A high-performance inter-process communication using shared memory on Linux/Wind
14
15
* ` ipc::route ` 支持单写多读,` ipc::channel ` 支持多写多读【** 注意:目前同一条通道最多支持32个receiver,sender无限制** 】
15
16
* 默认采用广播模式收发数据,支持用户任意选择读写方案
16
17
* 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时
18
+ * 支持[ Vcpkg] ( https://github.com/microsoft/vcpkg/blob/master/README_zh_CN.md ) 方式安装,如` vcpkg install cpp-ipc `
17
19
18
20
## Usage
19
21
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class queue_base : public queue_conn {
144
144
}
145
145
146
146
std::size_t conn_count () const noexcept {
147
- return (elems_ == nullptr ) ? invalid_value : elems_->conn_count ();
147
+ return (elems_ == nullptr ) ? static_cast <std:: size_t >( invalid_value) : elems_->conn_count ();
148
148
}
149
149
150
150
bool valid () const noexcept {
You can’t perform that action at this time.
0 commit comments