An open API service indexing awesome lists of open source software.

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

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)