diff -r 000000000000 -r bde4ae8d615e os/ossrv/ossrv_pub/boost_apis/boost/thread/barrier.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/thread/barrier.hpp Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,44 @@ +// Copyright (C) 2002-2003 +// David Moore, William E. Kempf +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_BARRIER_JDM030602_HPP +#define BOOST_BARRIER_JDM030602_HPP + +#include + +#include +#include + +namespace boost { + +class BOOST_THREAD_DECL barrier +{ +public: + barrier(unsigned int count); + ~barrier(); + + bool wait(); + +private: + mutex m_mutex; +// disable warnings about non dll import +// see: http://www.boost.org/more/separate_compilation.html#dlls +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4251 4231 4660 4275) +#endif + condition m_cond; +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif + unsigned int m_threshold; + unsigned int m_count; + unsigned int m_generation; +}; + +} // namespace boost + +#endif