You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_NODISCARD static unsigned int hardware_concurrency() noexcept {
return thread::hardware_concurrency();
}
private:
void _Try_cancel_and_join() noexcept {
if (_Impl.joinable()) {
_Ssource.request_stop();
_Impl.join();
}
}
thread _Impl;
stop_source _Ssource;
};
While it's implementation-defined as to whether native_handle() is provided, we should do so - jthread wraps thread so we can just return its native_handle().
jthread
definesnative_handle_type
but not anative_handle()
member function:STL/stl/inc/thread
Lines 291 to 377 in 4c862ee
While it's implementation-defined as to whether
native_handle()
is provided, we should do so -jthread
wrapsthread
so we can just return itsnative_handle()
.Reported as DevCom-1389817 and Microsoft-internal VSO-1306513 / AB#1306513 .
The text was updated successfully, but these errors were encountered: