Refactors test cases
[junction.git] / junction / Core.h
1 /*------------------------------------------------------------------------
2   Junction: Concurrent data structures in C++
3   Copyright (c) 2016 Jeff Preshing
4
5   Distributed under the Simplified BSD License.
6   Original location: https://github.com/preshing/junction
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the LICENSE file for more information.
11 ------------------------------------------------------------------------*/
12
13 #ifndef JUNCTION_CORE_H
14 #define JUNCTION_CORE_H
15
16 //-----------------------------------------------
17 #include "junction_config.h" // junction_config.h generated by CMake.
18
19 // Default to true in case junction_config.h is missing entirely:
20 #ifndef JUNCTION_USE_STRIPING
21 #define JUNCTION_USE_STRIPING 1
22 #endif
23 //-----------------------------------------------
24
25 #include <turf/Core.h>
26 #include <turf/Assert.h>
27 #include <turf/Atomic.h>
28
29 namespace junction {
30 using namespace turf::intTypes;
31 }
32
33 // Enable this to force migration overflows (for test purposes):
34 #define JUNCTION_LEAPFROG_FORCE_MIGRATION_OVERFLOWS 0
35
36 #endif // JUNCTION_CORE_H