https://github.com/jeremyko/disruptorcpp-ipc
disruptor c++ implementation for IPC
https://github.com/jeremyko/disruptorcpp-ipc
disruptor ipc
Last synced: 3 months ago
JSON representation
disruptor c++ implementation for IPC
- Host: GitHub
- URL: https://github.com/jeremyko/disruptorcpp-ipc
- Owner: jeremyko
- License: mit
- Created: 2015-09-09T06:39:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T05:49:19.000Z (9 months ago)
- Last Synced: 2025-04-04T12:23:16.148Z (6 months ago)
- Topics: disruptor, ipc
- Language: C++
- Homepage: https://jeremyko.github.io/2015/09/06/disruptor.html
- Size: 30.3 KB
- Stars: 32
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# disruptorCpp-IPC
## basic disruptor c++ implementation for IPC
[https://jeremyko.github.io/2015/09/06/disruptor.html](https://jeremyko.github.io/2015/09/06/disruptor.html)### inter thread test
cd tests/inter_thread
make
./inter_thread_test
### inter process test
cd tests/inter_process
make -f make-producer.mk
make -f make-consumer.mk
//run 2 consumer, then 1 producer
./consumer 0
./consumer 1
./producer
//make sure reset shared memory running 'ipcrm -M your_shmkey' if you have changed buffer size or number of producers/consumers.### arbitrary length of data
There is one downside here. this is a method of pre-allocating data of a fixed length, putting it in the ring buffer, and using it. There is a slightly modified version in case the length of the saved data is variable. Please note the following.
[https://github.com/jeremyko/disruptorCpp-IPC-Arbitrary-Length-Data](https://github.com/jeremyko/disruptorCpp-IPC-Arbitrary-Length-Data)