Home
last modified time | relevance | path

Searched refs:_M_refcount (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/tr1/
H A Dshared_ptr.h545 : _M_ptr(0), _M_refcount() // never throws in _GLIBCXX_VISIBILITY()
551 : _M_ptr(__p), _M_refcount(__p) in _GLIBCXX_VISIBILITY()
555 __enable_shared_from_this_helper(_M_refcount, __p, __p); in _GLIBCXX_VISIBILITY()
560 : _M_ptr(__p), _M_refcount(__p, __d) in _GLIBCXX_VISIBILITY()
564 __enable_shared_from_this_helper(_M_refcount, __p, __p); in _GLIBCXX_VISIBILITY()
571 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws in _GLIBCXX_VISIBILITY()
577 : _M_refcount(__r._M_refcount) // may throw in _GLIBCXX_VISIBILITY()
590 : _M_ptr(__r.get()), _M_refcount() in _GLIBCXX_VISIBILITY()
595 _M_refcount = __shared_count<_Lp>(__r); in _GLIBCXX_VISIBILITY()
596 __enable_shared_from_this_helper(_M_refcount, __tmp, __tmp); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/tr1/
H A Dshared_ptr.h550 : _M_ptr(0), _M_refcount() // never throws in _GLIBCXX_VISIBILITY()
556 : _M_ptr(__p), _M_refcount(__p) in _GLIBCXX_VISIBILITY()
560 __enable_shared_from_this_helper(_M_refcount, __p, __p); in _GLIBCXX_VISIBILITY()
565 : _M_ptr(__p), _M_refcount(__p, __d) in _GLIBCXX_VISIBILITY()
569 __enable_shared_from_this_helper(_M_refcount, __p, __p); in _GLIBCXX_VISIBILITY()
576 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws in _GLIBCXX_VISIBILITY()
582 : _M_refcount(__r._M_refcount) // may throw in _GLIBCXX_VISIBILITY()
597 : _M_ptr(__r.get()), _M_refcount() in _GLIBCXX_VISIBILITY()
602 _M_refcount = __shared_count<_Lp>(__r); in _GLIBCXX_VISIBILITY()
603 __enable_shared_from_this_helper(_M_refcount, __tmp, __tmp); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/
H A Dshared_ptr_base.h1127 : _M_ptr(0), _M_refcount() in _GLIBCXX_VISIBILITY()
1133 : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) in _GLIBCXX_VISIBILITY()
1142 : _M_ptr(__p), _M_refcount(__p, std::move(__d)) in _GLIBCXX_VISIBILITY()
1152 : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) in _GLIBCXX_VISIBILITY()
1161 : _M_ptr(0), _M_refcount(__p, std::move(__d)) in _GLIBCXX_VISIBILITY()
1166 : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) in _GLIBCXX_VISIBILITY()
1173 : _M_ptr(__p), _M_refcount(__r._M_refcount) // never throws in _GLIBCXX_VISIBILITY()
1180 : _M_ptr(__p), _M_refcount() in _GLIBCXX_VISIBILITY()
1182 _M_refcount._M_swap(__r._M_refcount); in _GLIBCXX_VISIBILITY()
1192 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) in _GLIBCXX_VISIBILITY()
[all …]
H A Dlocale_classes.h379 mutable _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY() local
405 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) in _GLIBCXX_VISIBILITY()
449 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
455 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
456 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) in _GLIBCXX_VISIBILITY()
458 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount); in _GLIBCXX_VISIBILITY()
544 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY()
559 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
565 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
566 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) in _GLIBCXX_VISIBILITY()
[all …]
H A Dios_base.h559 _Atomic_word _M_refcount; // 0 means one reference. in _GLIBCXX_VISIBILITY()
563 : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } in _GLIBCXX_VISIBILITY()
566 _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
573 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
574 int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); in _GLIBCXX_VISIBILITY()
577 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount); in _GLIBCXX_VISIBILITY()
H A Dc++config490 // _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount);
491 // if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, -1) <= 0)
493 // _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount);
H A Dbasic_string.h3203 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY()
3250 return __atomic_load_n(&this->_M_refcount, __ATOMIC_RELAXED) < 0; in _GLIBCXX_VISIBILITY()
3252 return this->_M_refcount < 0; in _GLIBCXX_VISIBILITY()
3265 return __atomic_load_n(&this->_M_refcount, __ATOMIC_ACQUIRE) > 0; in _GLIBCXX_VISIBILITY()
3267 return this->_M_refcount > 0; in _GLIBCXX_VISIBILITY()
3273 { this->_M_refcount = -1; } in _GLIBCXX_VISIBILITY()
3277 { this->_M_refcount = 0; } in _GLIBCXX_VISIBILITY()
3317 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount); in _GLIBCXX_VISIBILITY()
3326 if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, in _GLIBCXX_VISIBILITY()
3329 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount); in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
H A Dshared_ptr_base.h1463 : _M_ptr(0), _M_refcount() in _GLIBCXX_VISIBILITY()
1469 : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) in _GLIBCXX_VISIBILITY()
1478 : _M_ptr(__p), _M_refcount(__p, std::move(__d)) in _GLIBCXX_VISIBILITY()
1488 : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) in _GLIBCXX_VISIBILITY()
1497 : _M_ptr(0), _M_refcount(__p, std::move(__d)) in _GLIBCXX_VISIBILITY()
1502 : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) in _GLIBCXX_VISIBILITY()
1509 : _M_ptr(__p), _M_refcount(__r._M_refcount) // never throws in _GLIBCXX_VISIBILITY()
1516 : _M_ptr(__p), _M_refcount() in _GLIBCXX_VISIBILITY()
1518 _M_refcount._M_swap(__r._M_refcount); in _GLIBCXX_VISIBILITY()
1528 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) in _GLIBCXX_VISIBILITY()
[all …]
H A Dshared_ptr_atomic.h386 using __count_type = decltype(_Tp::_M_refcount); in _GLIBCXX_VISIBILITY()
511 _Atomic_count _M_refcount; in _GLIBCXX_VISIBILITY()
530 : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) in _GLIBCXX_VISIBILITY()
549 auto __pi = _M_refcount.lock(__o); in _GLIBCXX_VISIBILITY()
551 __ret._M_refcount._M_pi = _S_add_ref(__pi); in _GLIBCXX_VISIBILITY()
552 _M_refcount.unlock(memory_order_relaxed); in _GLIBCXX_VISIBILITY()
559 _M_refcount.lock(memory_order_acquire); in _GLIBCXX_VISIBILITY()
561 _M_refcount._M_swap_unlock(__r._M_refcount, __o); in _GLIBCXX_VISIBILITY()
569 auto __pi = _M_refcount.lock(memory_order_acquire); in _GLIBCXX_VISIBILITY()
571 && __pi == __expected._M_refcount._M_pi) in _GLIBCXX_VISIBILITY()
[all …]
H A Dlocale_classes.h379 mutable _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY() local
405 facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) in _GLIBCXX_VISIBILITY()
449 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
455 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
456 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) in _GLIBCXX_VISIBILITY()
458 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount); in _GLIBCXX_VISIBILITY()
544 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY()
559 { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
565 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
566 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) in _GLIBCXX_VISIBILITY()
[all …]
H A Dios_base.h572 _Atomic_word _M_refcount; // 0 means one reference. in _GLIBCXX_VISIBILITY()
576 : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } in _GLIBCXX_VISIBILITY()
579 _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } in _GLIBCXX_VISIBILITY()
586 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount); in _GLIBCXX_VISIBILITY()
587 int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); in _GLIBCXX_VISIBILITY()
590 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount); in _GLIBCXX_VISIBILITY()
H A Dcow_string.h167 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY() member
214 return __atomic_load_n(&this->_M_refcount, __ATOMIC_RELAXED) < 0; in _GLIBCXX_VISIBILITY()
216 return this->_M_refcount < 0; in _GLIBCXX_VISIBILITY()
230 return __atomic_load_n(&this->_M_refcount, __ATOMIC_ACQUIRE) > 0; in _GLIBCXX_VISIBILITY()
232 return this->_M_refcount > 0; in _GLIBCXX_VISIBILITY()
237 { this->_M_refcount = -1; } in _GLIBCXX_VISIBILITY()
241 { this->_M_refcount = 0; } in _GLIBCXX_VISIBILITY()
281 _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount); in _GLIBCXX_VISIBILITY()
290 if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, in _GLIBCXX_VISIBILITY()
293 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount); in _GLIBCXX_VISIBILITY()
[all …]
H A Dc++config621 // _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount);
622 // if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, -1) <= 0)
624 // _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount);
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/
H A Drc_string_base.h117 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY() member
134 __atomic_add_dispatch(&_M_info._M_refcount, 1); in _GLIBCXX_VISIBILITY()
141 _M_info._M_refcount = 0; // One reference. in _GLIBCXX_VISIBILITY()
206 _M_refcount); in _GLIBCXX_VISIBILITY()
207 if (__exchange_and_add_dispatch(&_M_rep()->_M_info._M_refcount, in _GLIBCXX_VISIBILITY()
211 _M_refcount); in _GLIBCXX_VISIBILITY()
218 { return _M_rep()->_M_info._M_refcount < 0; } in _GLIBCXX_VISIBILITY()
222 { _M_rep()->_M_info._M_refcount = 0; } in _GLIBCXX_VISIBILITY()
295 { return _M_rep()->_M_info._M_refcount > 0; } in _GLIBCXX_VISIBILITY()
299 { _M_rep()->_M_info._M_refcount = -1; } in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
H A Drc_string_base.h117 _Atomic_word _M_refcount; in _GLIBCXX_VISIBILITY() member
134 __atomic_add_dispatch(&_M_info._M_refcount, 1); in _GLIBCXX_VISIBILITY()
141 _M_info._M_refcount = 0; // One reference. in _GLIBCXX_VISIBILITY()
206 _M_refcount); in _GLIBCXX_VISIBILITY()
207 if (__exchange_and_add_dispatch(&_M_rep()->_M_info._M_refcount, in _GLIBCXX_VISIBILITY()
211 _M_refcount); in _GLIBCXX_VISIBILITY()
218 { return _M_rep()->_M_info._M_refcount < 0; } in _GLIBCXX_VISIBILITY()
222 { _M_rep()->_M_info._M_refcount = 0; } in _GLIBCXX_VISIBILITY()
295 { return _M_rep()->_M_info._M_refcount > 0; } in _GLIBCXX_VISIBILITY()
299 { _M_rep()->_M_info._M_refcount = -1; } in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/backward/
H A Dauto_ptr.h314 : _M_ptr(__r.get()), _M_refcount() in _GLIBCXX_VISIBILITY()
319 _M_refcount = __shared_count<_Lp>(std::move(__r)); in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/backward/
H A Dauto_ptr.h310 : _M_ptr(__r.get()), _M_refcount() in _GLIBCXX_VISIBILITY()
315 _M_refcount = __shared_count<_Lp>(std::move(__r)); in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/pstl/
H A Dparallel_backend_tbb.h521 std::atomic<int> _M_refcount{};
546 _M_refcount.store(__n, std::memory_order_release); in set_ref_count()
573 _PSTL_ASSERT(__parent->_M_refcount.load(std::memory_order_relaxed) > 0); in make_additional_child_of()
574 ++__parent->_M_refcount; in make_additional_child_of()
648 _PSTL_ASSERT(__parent->_M_refcount.load(std::memory_order_relaxed) > 0); in finalize()
649 if (--__parent->_M_refcount == 0) in finalize()
703 _M_refcount.store(1, std::memory_order_relaxed);
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/stdcpp/
H A Dstring.d1161 _Atomic_word _M_refcount; in version() member
1180 _M_refcount = 0; in version()
1198 return atomicLoad!(MemoryOrder.raw)(this._M_refcount) < 0; in version()
1200 return _M_refcount < 0; in version()
1208 return atomicLoad!(MemoryOrder.acq)(this._M_refcount) > 0; in version()
1210 return _M_refcount > 0; in version()
1268 if (__exchange_and_add_dispatch(&this._M_refcount, -1) <= 0) in version()
1287 __atomic_add_dispatch(&this._M_refcount, 1); in version()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/
H A Dlocalename.cc192 : _M_refcount(__refs), _M_facets(0), _M_facets_size(num_facets), in _Impl()
H A Dlocale.cc260 : _M_refcount(__refs), _M_facets(0), _M_facets_size(__imp._M_facets_size), in _Impl()
H A Dlocale_init.cc492 : _M_refcount(__refs), _M_facets(0), _M_facets_size(num_facets), in _Impl()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++98/
H A Dlocalename.cc180 : _M_refcount(__refs), _M_facets(0), _M_facets_size(num_facets), in _Impl()
H A Dlocale.cc260 : _M_refcount(__refs), _M_facets(0), _M_facets_size(__imp._M_facets_size), in _Impl()
H A Dlocale_init.cc473 : _M_refcount(__refs), _M_facets(0), _M_facets_size(num_facets), in _Impl()

12