/usr/include/boost/smart_ptr/detail
NameSizeModeActions
atomic_count.hpp32320644editdlrm
atomic_count_gcc.hpp16230644editdlrm
atomic_count_gcc_atomic.hpp12770644editdlrm
atomic_count_gcc_x86.hpp17390644editdlrm
atomic_count_nt.hpp12000644editdlrm
atomic_count_pt.hpp20600644editdlrm
atomic_count_spin.hpp13060644editdlrm
atomic_count_std_atomic.hpp13490644editdlrm
atomic_count_sync.hpp14350644editdlrm
atomic_count_win32.hpp13540644editdlrm
lightweight_mutex.hpp12570644editdlrm
lightweight_thread.hpp34420644editdlrm
local_counted_base.hpp32170644editdlrm
local_sp_deleter.hpp17310644editdlrm
lwm_pthreads.hpp17530644editdlrm
lwm_std_mutex.hpp10770644editdlrm
lwm_win32_cs.hpp27960644editdlrm
operator_bool.hpp17310644editdlrm
quick_allocator.hpp51370644editdlrm
shared_count.hpp153670644editdlrm
spinlock.hpp18630644editdlrm
spinlock_gcc_arm.hpp27010644editdlrm
spinlock_gcc_atomic.hpp15190644editdlrm
spinlock_nt.hpp16260644editdlrm
spinlock_pool.hpp29540644editdlrm
spinlock_pt.hpp14740644editdlrm
spinlock_std_atomic.hpp17230644editdlrm
spinlock_sync.hpp16440644editdlrm
spinlock_w32.hpp21040644editdlrm
sp_convertible.hpp21570644editdlrm
sp_counted_base.hpp34800644editdlrm
sp_counted_base_acc_ia64.hpp34980644editdlrm
sp_counted_base_aix.hpp32700644editdlrm
sp_counted_base_cw_ppc.hpp34260644editdlrm
sp_counted_base_gcc_atomic.hpp33310644editdlrm
sp_counted_base_gcc_ia64.hpp40100644editdlrm
sp_counted_base_gcc_mips.hpp40970644editdlrm
sp_counted_base_gcc_ppc.hpp38770644editdlrm
sp_counted_base_gcc_sparc.hpp38500644editdlrm
sp_counted_base_gcc_x86.hpp39360644editdlrm
sp_counted_base_nt.hpp27330644editdlrm
sp_counted_base_pt.hpp37260644editdlrm
sp_counted_base_snc_ps3.hpp37760644editdlrm
sp_counted_base_spin.hpp30730644editdlrm
sp_counted_base_std_atomic.hpp35570644editdlrm
sp_counted_base_sync.hpp33260644editdlrm
sp_counted_base_vacpp_ppc.hpp36970644editdlrm
sp_counted_base_w32.hpp32640644editdlrm
sp_counted_impl.hpp68080644editdlrm
sp_disable_deprecated.hpp9830644editdlrm
sp_forward.hpp11800644editdlrm
sp_has_gcc_intrinsics.hpp7860644editdlrm
sp_has_sync_intrinsics.hpp18720644editdlrm
sp_interlocked.hpp65670644editdlrm
sp_noexcept.hpp11850644editdlrm
sp_nullptr_t.hpp9760644editdlrm
sp_obsolete.hpp9140644editdlrm
sp_thread_pause.hpp11010644editdlrm
sp_thread_sleep.hpp20160644editdlrm
sp_thread_yield.hpp18830644editdlrm
sp_typeinfo_.hpp11760644editdlrm
sp_win32_sleep.hpp11680644editdlrm
yield_k.hpp10910644editdlrm
Edit: /usr/include/boost/smart_ptr/detail/atomic_count_gcc.hpp (1623B)
#ifndef BOOST_SMART_PTR_DETAIL_ATOMIC_COUNT_GCC_HPP_INCLUDED #define BOOST_SMART_PTR_DETAIL_ATOMIC_COUNT_GCC_HPP_INCLUDED // // boost/detail/atomic_count_gcc.hpp // // atomic_count for GNU libstdc++ v3 // // http://gcc.gnu.org/onlinedocs/porting/Thread-safety.html // // Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) 2002 Lars Gullik Bjønnes // Copyright 2003-2005 Peter Dimov // // 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) // #if __GNUC__ * 100 + __GNUC_MINOR__ >= 402 # include #else # include #endif #if defined(BOOST_SP_REPORT_IMPLEMENTATION) #include BOOST_PRAGMA_MESSAGE("Using libstdc++ atomic_count") #endif namespace boost { namespace detail { #if defined(__GLIBCXX__) // g++ 3.4+ using __gnu_cxx::__atomic_add; using __gnu_cxx::__exchange_and_add; #endif class atomic_count { public: explicit atomic_count( long v ) : value_( v ) {} long operator++() { return __exchange_and_add( &value_, +1 ) + 1; } long operator--() { return __exchange_and_add( &value_, -1 ) - 1; } operator long() const { return __exchange_and_add( &value_, 0 ); } private: atomic_count(atomic_count const &); atomic_count & operator=(atomic_count const &); mutable _Atomic_word value_; }; } // namespace detail } // namespace boost #endif // #ifndef BOOST_SMART_PTR_DETAIL_ATOMIC_COUNT_GCC_HPP_INCLUDED