Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/include/__threading_support
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | #endif // _LIBCPP_STD_VER <= 17 | ||||
_LIBCPP_INLINE_VISIBILITY | _LIBCPP_INLINE_VISIBILITY | ||||
basic_ostream<_CharT, _Traits>& | basic_ostream<_CharT, _Traits>& | ||||
operator<<(basic_ostream<_CharT, _Traits>& __os, __thread_id __id); | operator<<(basic_ostream<_CharT, _Traits>& __os, __thread_id __id); | ||||
private: | private: | ||||
_LIBCPP_INLINE_VISIBILITY | _LIBCPP_INLINE_VISIBILITY | ||||
__thread_id(__libcpp_thread_id __id) : __id_(__id) {} | __thread_id(__libcpp_thread_id __id) : __id_(__id) {} | ||||
_LIBCPP_HIDE_FROM_ABI friend __libcpp_thread_id __get_underlying_id(const __thread_id __id) { return __id.__id_; } | |||||
friend __thread_id this_thread::get_id() _NOEXCEPT; | friend __thread_id this_thread::get_id() _NOEXCEPT; | ||||
friend class _LIBCPP_TYPE_VIS thread; | friend class _LIBCPP_TYPE_VIS thread; | ||||
friend struct _LIBCPP_TEMPLATE_VIS hash<__thread_id>; | friend struct _LIBCPP_TEMPLATE_VIS hash<__thread_id>; | ||||
}; | }; | ||||
inline _LIBCPP_HIDE_FROM_ABI | inline _LIBCPP_HIDE_FROM_ABI | ||||
bool operator==(__thread_id __x, __thread_id __y) _NOEXCEPT { | bool operator==(__thread_id __x, __thread_id __y) _NOEXCEPT { | ||||
// Don't pass id==0 to underlying routines | // Don't pass id==0 to underlying routines | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |