Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions stl/inc/thread
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ public:

_NODISCARD id get_id() const noexcept;

_NODISCARD static unsigned int hardware_concurrency() noexcept {
return _Thrd_hardware_concurrency();
_NODISCARD native_handle_type native_handle() noexcept /* strengthened */ { // return Win32 HANDLE as void *
return _Thr._Hnd;
}

_NODISCARD native_handle_type native_handle() { // return Win32 HANDLE as void *
return _Thr._Hnd;
_NODISCARD static unsigned int hardware_concurrency() noexcept {
return _Thrd_hardware_concurrency();
}

private:
Expand Down Expand Up @@ -344,6 +344,10 @@ public:
return _Impl.get_id();
}

_NODISCARD native_handle_type native_handle() noexcept /* strengthened */ {
return _Impl.native_handle();
}

_NODISCARD stop_source get_stop_source() noexcept {
return _Ssource;
}
Expand Down