Searched refs:__thread_id (Results 1 – 6 of 6) sorted by relevance
| /openbsd/src/gnu/gcc/libstdc++-v3/src/ |
| D | mt_allocator.cc | 118 __pool<false>::_M_reserve_block(size_t __bytes, const size_t __thread_id) in _M_reserve_block() argument 138 __bin._M_first[__thread_id] = __block; in _M_reserve_block() 147 __block = __bin._M_first[__thread_id]; in _M_reserve_block() 148 __bin._M_first[__thread_id] = __block->_M_next; in _M_reserve_block() 265 const size_t __thread_id = _M_get_thread_id(); in _M_reclaim_block() local 270 size_t __remove = __bin._M_free[__thread_id]; in _M_reclaim_block() 277 const _Atomic_word __reclaimed = __reclaimed_base[__thread_id]; in _M_reclaim_block() 278 const size_t __net_used = __bin._M_used[__thread_id] - __reclaimed; in _M_reclaim_block() 288 __bin._M_used[__thread_id] -= __reclaimed; in _M_reclaim_block() 289 __atomic_add(&__reclaimed_base[__thread_id], -__reclaimed); in _M_reclaim_block() [all …]
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| D | __threading_support | 596 class _LIBCPP_TYPE_VIS __thread_id; 601 _LIBCPP_INLINE_VISIBILITY __thread_id get_id() _NOEXCEPT; 605 template<> struct hash<__thread_id>; 607 class _LIBCPP_TEMPLATE_VIS __thread_id 615 bool __lt_impl(__thread_id __x, __thread_id __y) _NOEXCEPT 624 __thread_id() _NOEXCEPT : __id_(0) {} 629 friend _LIBCPP_HIDE_FROM_ABI bool operator==(__thread_id __x, __thread_id __y) _NOEXCEPT; 631 friend _LIBCPP_HIDE_FROM_ABI bool operator<(__thread_id __x, __thread_id __y) _NOEXCEPT; 633 …friend _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(__thread_id __x, __thread_id __y) noexcep… 640 operator<<(basic_ostream<_CharT, _Traits>& __os, __thread_id __id); [all …]
|
| D | thread | 206 struct _LIBCPP_TEMPLATE_VIS hash<__thread_id> 207 : public __unary_function<__thread_id, size_t> 210 size_t operator()(__thread_id __v) const _NOEXCEPT 219 operator<<(basic_ostream<_CharT, _Traits>& __os, __thread_id __id) 229 typedef __thread_id id;
|
| D | mutex | 281 __thread_id __id_; 306 __thread_id __id = this_thread::get_id();
|
| /openbsd/src/gnu/gcc/libstdc++-v3/include/ext/ |
| D | mt_allocator.h | 224 _M_reserve_block(size_t __bytes, const size_t __thread_id); 335 _M_reserve_block(size_t __bytes, const size_t __thread_id); 346 size_t __thread_id) in _M_adjust_freelist() argument 350 __block->_M_thread_id = __thread_id; in _M_adjust_freelist() 351 --__bin._M_free[__thread_id]; in _M_adjust_freelist() 352 ++__bin._M_used[__thread_id]; in _M_adjust_freelist() 689 const size_t __thread_id = __pool._M_get_thread_id(); 696 if (__bin._M_first[__thread_id]) 700 _Block_record* __block = __bin._M_first[__thread_id]; 701 __bin._M_first[__thread_id] = __block->_M_next; [all …]
|
| /openbsd/src/gnu/llvm/libcxx/src/ |
| D | mutex.cpp | 152 __thread_id id = this_thread::get_id(); in lock() 170 __thread_id id = this_thread::get_id(); in try_lock()
|