1 #ifndef BOOST_DETAIL_ATOMIC_COUNT_SOLARIS_HPP_INCLUDED
2 #define BOOST_DETAIL_ATOMIC_COUNT_SOLARIS_HPP_INCLUDED
5 // boost/detail/atomic_count_solaris.hpp
6 // based on: boost/detail/atomic_count_win32.hpp
8 // Copyright (c) 2001-2005 Peter Dimov
9 // Copyright (c) 2006 Michael van der Westhuizen
11 // Distributed under the Boost Software License, Version 1.0. (See
12 // accompanying file LICENSE_1_0.txt or copy at
13 // http://www.boost.org/LICENSE_1_0.txt)
28 explicit atomic_count( uint32_t v ): value_( v )
34 return atomic_inc_32_nv( &value_ );
39 return atomic_dec_32_nv( &value_ );
42 operator uint32_t() const
44 return static_cast<uint32_t const volatile &>( value_ );
49 atomic_count( atomic_count const & );
50 atomic_count & operator=( atomic_count const & );
59 #endif // #ifndef BOOST_DETAIL_ATOMIC_COUNT_SOLARIS_HPP_INCLUDED