Skip to content

Commit 1e092bb

Browse files
committed
Merge branch 'master' into develop
2 parents a457a89 + 74e871e commit 1e092bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mutouyun/cpp-ipc/blob/master/LICENSE)
44
[![Build Status](https://github.com/mutouyun/cpp-ipc/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/mutouyun/cpp-ipc/actions)
55
[![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)
67

78
A high-performance inter-process communication using shared memory on Linux/Windows.
89
使用共享内存的跨平台(Linux/Windows,x86/x64/ARM)高性能IPC通讯库。
@@ -14,6 +15,7 @@ A high-performance inter-process communication using shared memory on Linux/Wind
1415
* `ipc::route`支持单写多读,`ipc::channel`支持多写多读【**注意:目前同一条通道最多支持32个receiver,sender无限制**
1516
* 默认采用广播模式收发数据,支持用户任意选择读写方案
1617
* 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时
18+
* 支持[Vcpkg](https://github.com/microsoft/vcpkg/blob/master/README_zh_CN.md)方式安装,如`vcpkg install cpp-ipc`
1719

1820
## Usage
1921

src/libipc/queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class queue_base : public queue_conn {
144144
}
145145

146146
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();
148148
}
149149

150150
bool valid() const noexcept {

0 commit comments

Comments
 (0)