1 #ifndef BOOST_DETAIL_ATOMIC_COUNT_WIN32_HPP_INCLUDED
2 #define BOOST_DETAIL_ATOMIC_COUNT_WIN32_HPP_INCLUDED
9 // boost/detail/atomic_count_win32.hpp
11 // Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
13 // Permission to copy, use, modify, sell and distribute this software
14 // is granted provided this copyright notice appears in all copies.
15 // This software is provided "as is" without express or implied
16 // warranty, and with no claim as to its suitability for any purpose.
19 #include <boost/detail/winapi.hpp>
31 explicit atomic_count(long v): value_(v)
37 return winapi::InterlockedIncrement(&value_);
42 return winapi::InterlockedDecrement(&value_);
52 atomic_count(atomic_count const &);
53 atomic_count & operator=(atomic_count const &);
62 #endif // #ifndef BOOST_DETAIL_ATOMIC_COUNT_WIN32_HPP_INCLUDED