Skip to content

jeremyko/disruptorCpp-IPC

Repository files navigation

disruptorCpp-IPC

basic disruptor c++ implementation for IPC

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

Releases

No releases published

Packages

No packages published