Thrill  0.1
thread_barrier.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * thrill/common/thread_barrier.hpp
3  *
4  * Part of Project Thrill - http://project-thrill.org
5  *
6  * Copyright (C) 2015 Emanuel Jöbstl <[email protected]>
7  * Copyright (C) 2015 Timo Bingmann <[email protected]>
8  *
9  * All rights reserved. Published under the BSD-2 license in the LICENSE file.
10  ******************************************************************************/
11 
12 #pragma once
13 #ifndef THRILL_COMMON_THREAD_BARRIER_HEADER
14 #define THRILL_COMMON_THREAD_BARRIER_HEADER
15 
18 
19 namespace thrill {
20 namespace common {
21 
22 // select thread barrier implementation.
23 #if THRILL_HAVE_THREAD_SANITIZER
25 #else
27 #endif
28 
29 } // namespace common
30 } // namespace thrill
31 
32 #endif // !THRILL_COMMON_THREAD_BARRIER_HEADER
33 
34 /******************************************************************************/
Implements a thread barrier using mutex locking and condition variables that can be used to synchroni...
Implements a thread barrier using atomics and a spin lock that can be used to synchronize threads...
tlx::ThreadBarrierSpin ThreadBarrier