Skip to content

wangmeng1099/Disruptor-cpp

Repository files navigation

Disruptor-cpp

Build Status Build status

Overview

Disruptor-cpp is a fully functional C++ port of the LMAX disruptor.

Building

Compilers

  • Clang 3.8 or newer
  • GCC 5.0 or newer
  • Microsoft Visual C++ 2015 or newer

Linux

Boost must be available on your machine. You can install it using your favorite package manager or build it on your own. If Boost has been installed into standard system locations the following commands will start the build:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=release
make

If Boost has been installed into a custom location you will probably need to specify BOOST_ROOT variable. Please refer to the Find boost documentation for details.

Optionally you may want to compile and run the unit tests and benchmarks. The tests compilation is activated by means of DISRUPTOR_BUILD_TESTS flag:

cmake .. -DCMAKE_BUILD_TYPE=release -DDISRUPTOR_BUILD_TESTS=true

Windows

The simplest way to compile the library on Windows is to use the provided Visual Studio solution files:

  • Disruptor-lib.sln - the solution only includes the library.
  • Disruptor-all.sln - the solution includes the library, benchmarks and unit tests.

Boost must be available on your machine. The boost.props file already included into the solution but you may need to modify the headers and libraries directory according to your boost location and folder structure.

About

Port of LMAX Disruptor to C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 86.8%
  • Python 10.0%
  • CMake 0.9%
  • Shell 0.6%
  • Makefile 0.6%
  • M4 0.6%
  • Other 0.5%