2021-09-11 15:52:48 +08:00
.github/workflows Update c-cpp.yml 2021-07-10 13:52:44 +08:00
3rdparty set_target_properties version 2021-08-15 13:55:11 +08:00
demo modify cmakelists options 2021-08-15 13:23:43 +08:00
include/libipc Merge branch 'develop' into master 2021-08-29 11:05:24 +08:00
src ipc::sync::mutex for linux 2021-09-11 15:52:48 +08:00
test ipc::sync::mutex for linux 2021-09-11 15:52:48 +08:00
.gitignore modify cmakelists options 2021-08-15 13:23:43 +08:00
CMakeLists.txt 还原最朴素的写法 2021-08-15 14:18:09 +08:00
LICENSE 调整目录结构,隔离include路径,修正tls在win下的问题 2020-09-13 17:29:14 +08:00
performance.xlsx optimize the memory allocator 2019-10-07 11:23:31 +00:00
README.md Update README.md 2021-06-20 23:48:05 +08:00

cpp-ipc(libipc) - C++ IPC Library

MIT licensed Build Status Build status

A high-performance inter-process communication using shared memory on Linux/Windows.
使用共享内存的跨平台Linux/Windowsx86/x64/ARM高性能IPC通讯库。

  • 推荐支持C++17的编译器msvc-2017/gcc-7/clang-4
  • 除STL外无其他依赖
  • 无锁lock-free或轻量级spin-lock
  • 底层数据结构为循环数组circular array
  • ipc::route支持单写多读,ipc::channel支持多写多读【注意目前同一条通道最多支持32个receiversender无限制
  • 默认采用广播模式收发数据,支持用户任意选择读写方案
  • 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时

Usage

See: Wiki

Performance

Environment Value
Device Lenovo ThinkPad T450
CPU Intel® Core™ i5-4300U @ 2.5 GHz
RAM 16 GB
OS Windows 7 Ultimate x64
Compiler MSVC 2017 15.9.4

UT & benchmark test function: test
Performance data: performance.xlsx

Reference