mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
Merge branch 'master' into develop
This commit is contained in:
commit
1e092bb298
@ -3,6 +3,7 @@
|
|||||||
[](https://github.com/mutouyun/cpp-ipc/blob/master/LICENSE)
|
[](https://github.com/mutouyun/cpp-ipc/blob/master/LICENSE)
|
||||||
[](https://github.com/mutouyun/cpp-ipc/actions)
|
[](https://github.com/mutouyun/cpp-ipc/actions)
|
||||||
[](https://ci.appveyor.com/project/mutouyun/cpp-ipc)
|
[](https://ci.appveyor.com/project/mutouyun/cpp-ipc)
|
||||||
|
[](https://github.com/microsoft/vcpkg/tree/master/ports/cpp-ipc)
|
||||||
|
|
||||||
A high-performance inter-process communication using shared memory on Linux/Windows.
|
A high-performance inter-process communication using shared memory on Linux/Windows.
|
||||||
使用共享内存的跨平台(Linux/Windows,x86/x64/ARM)高性能IPC通讯库。
|
使用共享内存的跨平台(Linux/Windows,x86/x64/ARM)高性能IPC通讯库。
|
||||||
@ -14,6 +15,7 @@ A high-performance inter-process communication using shared memory on Linux/Wind
|
|||||||
* `ipc::route`支持单写多读,`ipc::channel`支持多写多读【**注意:目前同一条通道最多支持32个receiver,sender无限制**】
|
* `ipc::route`支持单写多读,`ipc::channel`支持多写多读【**注意:目前同一条通道最多支持32个receiver,sender无限制**】
|
||||||
* 默认采用广播模式收发数据,支持用户任意选择读写方案
|
* 默认采用广播模式收发数据,支持用户任意选择读写方案
|
||||||
* 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时
|
* 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时
|
||||||
|
* 支持[Vcpkg](https://github.com/microsoft/vcpkg/blob/master/README_zh_CN.md)方式安装,如`vcpkg install cpp-ipc`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
@ -144,7 +144,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::size_t conn_count() const noexcept {
|
std::size_t conn_count() const noexcept {
|
||||||
return (elems_ == nullptr) ? invalid_value : elems_->conn_count();
|
return (elems_ == nullptr) ? static_cast<std::size_t>(invalid_value) : elems_->conn_count();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool valid() const noexcept {
|
bool valid() const noexcept {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user