First public contribution.
1 // Copyright (C) 2002-2003
2 // David Moore, William E. Kempf
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_BARRIER_JDM030602_HPP
8 #define BOOST_BARRIER_JDM030602_HPP
10 #include <boost/thread/detail/config.hpp>
12 #include <boost/thread/mutex.hpp>
13 #include <boost/thread/condition.hpp>
17 class BOOST_THREAD_DECL barrier
20 barrier(unsigned int count);
27 // disable warnings about non dll import
28 // see: http://www.boost.org/more/separate_compilation.html#dlls
30 # pragma warning(push)
31 # pragma warning(disable: 4251 4231 4660 4275)
37 unsigned int m_threshold;
39 unsigned int m_generation;