Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.93 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.93 KB

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.