/third_party/boost/boost/smart_ptr/detail/ |
D | sp_counted_base_w32.hpp | 52 long use_count_; // #shared member in boost::detail::sp_counted_base 57 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 83 BOOST_SP_INTERLOCKED_INCREMENT( &use_count_ ); in add_ref_copy() 90 long tmp = static_cast< long const volatile& >( use_count_ ); in add_ref_lock() 98 … if( BOOST_SP_INTERLOCKED_COMPARE_EXCHANGE( &use_count_, tmp2, tmp ) == tmp2 - 1 ) return true; in add_ref_lock() 102 … if( BOOST_SP_INTERLOCKED_COMPARE_EXCHANGE( &use_count_, tmp + 1, tmp ) == tmp ) return true; in add_ref_lock() 110 if( BOOST_SP_INTERLOCKED_DECREMENT( &use_count_ ) == 0 ) in release() 132 return static_cast<long const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_solaris.hpp | 40 uint32_t use_count_; // #shared member in boost::detail::sp_counted_base 45 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 71 atomic_inc_32( &use_count_ ); in add_ref_copy() 78 uint32_t tmp = static_cast< uint32_t const volatile& >( use_count_ ); in add_ref_lock() 80 if( atomic_cas_32( &use_count_, tmp, tmp + 1 ) == tmp ) return true; in add_ref_lock() 86 if( atomic_dec_32_nv( &use_count_ ) == 0 ) in release() 108 return static_cast<long const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_nt.hpp | 46 boost::int_least32_t use_count_; // #shared member in boost::detail::sp_counted_base 51 sp_counted_base() BOOST_SP_NOEXCEPT: use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 77 ++use_count_; in add_ref_copy() 82 if( use_count_ == 0 ) return false; in add_ref_lock() 83 ++use_count_; in add_ref_lock() 89 if( --use_count_ == 0 ) in release() 111 return use_count_; in use_count()
|
D | sp_counted_base_spin.hpp | 69 int use_count_; // #shared member in boost::detail::sp_counted_base 74 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 100 atomic_increment( &use_count_ ); in add_ref_copy() 105 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 110 if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) in release() 132 spinlock_pool<1>::scoped_lock lock( &use_count_ ); in use_count() 133 return use_count_; in use_count()
|
D | sp_counted_base_pt.hpp | 47 boost::int_least32_t use_count_; // #shared member in boost::detail::sp_counted_base 54 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 89 ++use_count_; in add_ref_copy() 96 bool r = use_count_ == 0? false: ( ++use_count_, true ); in add_ref_lock() 104 boost::int_least32_t new_use_count = --use_count_; in release() 136 boost::int_least32_t r = use_count_; in use_count()
|
D | sp_counted_base_gcc_ia64.hpp | 99 int use_count_; // #shared member in boost::detail::sp_counted_base 104 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 130 atomic_increment( &use_count_ ); in add_ref_copy() 135 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 140 if( atomic_decrement( &use_count_ ) == 0 ) in release() 162 return static_cast<int const volatile &>( use_count_ ); // TODO use ld.acq here in use_count()
|
D | sp_counted_base_gcc_x86.hpp | 115 int use_count_; // #shared member in boost::detail::sp_counted_base 120 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 146 atomic_increment( &use_count_ ); in add_ref_copy() 151 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 156 if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) in release() 178 return static_cast<int const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_gcc_ppc.hpp | 123 int use_count_; // #shared member in boost::detail::sp_counted_base 128 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 154 atomic_increment( &use_count_ ); in add_ref_copy() 159 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 164 if( atomic_decrement( &use_count_ ) == 0 ) in release() 186 return static_cast<int const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_vacpp_ppc.hpp | 91 int use_count_; // #shared member in boost::detail::sp_counted_base 97 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 123 atomic_increment( &use_count_ ); in add_ref_copy() 128 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 133 if( atomic_decrement( &use_count_ ) == 0 ) in release() 155 return *const_cast<volatile int*>(&use_count_); in use_count()
|
D | sp_counted_base_aix.hpp | 81 int32_t use_count_; // #shared member in boost::detail::sp_counted_base 86 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 112 atomic_increment( &use_count_ ); in add_ref_copy() 117 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 122 if( atomic_decrement( &use_count_ ) == 0 ) in release() 144 return fetch_and_add( const_cast<int32_t*>(&use_count_), 0 ); in use_count()
|
D | sp_counted_base_gcc_mips.hpp | 129 int use_count_; // #shared member in boost::detail::sp_counted_base 134 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 160 atomic_increment( &use_count_ ); in add_ref_copy() 165 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 170 if( atomic_decrement( &use_count_ ) == 0 ) in release() 192 return static_cast<int const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_acc_ia64.hpp | 92 int use_count_; // #shared member in boost::detail::sp_counted_base 97 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 123 atomic_increment( &use_count_ ); in add_ref_copy() 128 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 133 if( atomic_decrement( &use_count_ ) == 0 ) in release() 155 return static_cast<int const volatile &>( use_count_ ); // TODO use ld.acq here in use_count()
|
D | sp_counted_base_sync.hpp | 94 sp_int32_t use_count_; // #shared member in boost::detail::sp_counted_base 99 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 125 atomic_increment( &use_count_ ); in add_ref_copy() 130 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 135 if( atomic_decrement( &use_count_ ) == 1 ) in release() 157 return const_cast< sp_int32_t const volatile & >( use_count_ ); in use_count()
|
D | sp_counted_base_cw_x86.hpp | 90 int use_count_; // #shared member in boost::detail::sp_counted_base 95 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 121 atomic_increment( &use_count_ ); in add_ref_copy() 126 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 131 if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) in release() 153 return static_cast<int const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_gcc_atomic.hpp | 77 boost::uint_least32_t use_count_; // #shared member in boost::detail::sp_counted_base 82 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 108 atomic_increment( &use_count_ ); in add_ref_copy() 113 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 118 if( atomic_decrement( &use_count_ ) == 1 ) in release() 140 return atomic_load( &use_count_ ); in use_count()
|
D | sp_counted_base_snc_ps3.hpp | 103 uint32_t use_count_; // #shared member in boost::detail::sp_counted_base 108 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 134 atomic_increment( &use_count_ ); in add_ref_copy() 139 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 144 if( atomic_decrement( &use_count_ ) == 1 ) in release() 166 return const_cast< uint32_t const volatile & >( use_count_ ); in use_count()
|
D | sp_counted_base_cw_ppc.hpp | 112 long use_count_; // #shared member in boost::detail::sp_counted_base 117 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 143 atomic_increment( &use_count_ ); in add_ref_copy() 148 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 153 if( atomic_decrement( &use_count_ ) == 0 ) in release() 175 return static_cast<long const volatile &>( use_count_ ); in use_count()
|
D | sp_counted_base_gcc_sparc.hpp | 108 int32_t use_count_; // #shared member in boost::detail::sp_counted_base 113 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 139 atomic_increment( &use_count_ ); in add_ref_copy() 144 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 149 if( atomic_decrement( &use_count_ ) == 1 ) in release() 171 return const_cast< int32_t const volatile & >( use_count_ ); in use_count()
|
D | sp_counted_base_clang.hpp | 75 atomic_int_least32_t use_count_; // #shared member in boost::detail::sp_counted_base 82 __c11_atomic_init( &use_count_, 1 ); in sp_counted_base() 108 atomic_increment( &use_count_ ); in add_ref_copy() 113 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 118 if( atomic_decrement( &use_count_ ) == 1 ) in release() 140 … return __c11_atomic_load( const_cast< atomic_int_least32_t* >( &use_count_ ), __ATOMIC_ACQUIRE ); in use_count()
|
D | sp_counted_base_std_atomic.hpp | 76 std::atomic_int_least32_t use_count_; // #shared member in boost::detail::sp_counted_base 81 sp_counted_base() BOOST_SP_NOEXCEPT: use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 107 atomic_increment( &use_count_ ); in add_ref_copy() 112 return atomic_conditional_increment( &use_count_ ) != 0; in add_ref_lock() 117 if( atomic_decrement( &use_count_ ) == 1 ) in release() 139 return use_count_.load( std::memory_order_acquire ); in use_count()
|
/third_party/boost/boost/interprocess/smart_ptr/detail/ |
D | sp_counted_base_atomic.hpp | 46 boost::uint32_t use_count_; // #shared member in boost::interprocess::ipcdetail::sp_counted_base 51 sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) in sp_counted_base() 59 ipcdetail::atomic_inc32( &use_count_ ); in add_ref_copy() 66 boost::uint32_t tmp = static_cast< boost::uint32_t const volatile& >( use_count_ ); in add_ref_lock() 68 if( ipcdetail::atomic_cas32( &use_count_, tmp + 1, tmp ) == tmp ) in add_ref_lock() 74 { return 1 == ipcdetail::atomic_dec32( &use_count_ ); } in ref_release() 83 { return (long)static_cast<boost::uint32_t const volatile &>( use_count_ ); } in use_count()
|
/third_party/boost/libs/smart_ptr/test/ |
D | ip_hash_test2.cpp | 20 int use_count_; member in base 27 base(): use_count_(0) in base() 39 return use_count_; in use_count() 44 ++p->use_count_; in intrusive_ptr_add_ref() 49 if(--p->use_count_ == 0) delete p; in intrusive_ptr_release()
|
D | ip_hash_test.cpp | 19 int use_count_; member in base 26 base(): use_count_(0) in base() 38 return use_count_; in use_count() 43 ++p->use_count_; in intrusive_ptr_add_ref() 48 if(--p->use_count_ == 0) delete p; in intrusive_ptr_release()
|
D | intrusive_ptr_move_test.cpp | 44 mutable boost::detail::atomic_count use_count_; member in N::base 51 base(): use_count_(0) in base() 67 return use_count_; in use_count() 74 ++p->use_count_; in intrusive_ptr_add_ref() 79 if(--p->use_count_ == 0) delete p; in intrusive_ptr_release() 86 ++use_count_; in add_ref() 91 if(--use_count_ == 0) delete this; in release()
|
/third_party/boost/boost/fiber/detail/ |
D | fss.hpp | 28 std::atomic< std::size_t > use_count_{ 0 }; member in boost::fibers::detail::fss_cleanup_function 41 p->use_count_.fetch_add( 1, std::memory_order_relaxed); in intrusive_ptr_add_ref() 46 if ( 1 == p->use_count_.fetch_sub( 1, std::memory_order_release) ) { in intrusive_ptr_release()
|