2020-03-30 11:11:01 +08:00
build optimize the memory allocator 2019-10-07 11:23:31 +00:00
demo/chat fix bugs of force_push; set PTHREAD_MUTEX_ROBUST to mutex in linux 2020-03-17 20:58:54 +08:00
include Update tls_pointer.h 2020-03-20 12:20:28 +08:00
src update elem_def.h 2020-03-30 11:11:01 +08:00
test add impl of force_push for single-single-unicast; make test_circ works 2020-03-29 14:28:53 +08:00
.gitignore first commit for shm. 2018-11-20 11:27:39 +08:00
.travis.yml use make -j 2019-07-05 10:37:21 +08:00
LICENSE Update LICENSE 2018-12-27 17:01:44 +08:00
performance.xlsx optimize the memory allocator 2019-10-07 11:23:31 +00:00
README.md Update README.md 2020-03-17 21:34:46 +08:00

cpp-ipc - 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