Skip to content
mutouyun edited this page Dec 9, 2025 · 10 revisions

Welcome to the cpp-ipc wiki!

Tutorial | Platform Support

C++ IPC Library (cpp-ipc) is a high-performance inter-process communication library using shared memory on Linux/Windows/FreeBSD.
使用共享内存的跨平台(Linux/Windows/FreeBSD,x86/x64/ARM)高性能IPC通讯库。

Latest Release: v1.4.0

Release v1.4.0 includes:

  • ✅ Full FreeBSD platform support
  • 📦 Comprehensive unit test suite refactoring
  • 🔢 Windows shared memory reference counting
  • 🐛 Critical bug fixes and improvements

Features

  • 推荐支持C++17的编译器(msvc-2017+/gcc-7+/clang-4+,仅支持14也可以编译)
  • 除STL外,无其他依赖
  • 无锁(lock-free)或轻量级spin-lock
  • 底层数据结构为循环数组(circular array)
  • ipc::route支持单写多读,ipc::channel支持多写多读
  • 默认采用广播模式收发数据,支持用户任意选择读写方案
  • 不会长时间忙等(重试一定次数后会使用信号量进行等待),支持超时
  • 支持进程间同步原语:ipc::sync::mutex, ipc::sync::semaphore, ipc::sync::condition

Clone this wiki locally