-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding native_handle
to jthread
#1966
Conversation
native_handle
to jthread
Note (no change requested): reordering member functions can affect ABI, but that's specific to new declarations of virtual functions. These are non-virtual so there's no ABI impact. |
TIL. Thanks STL! |
@StephanTLavavej @CaseyCarter - I accidently closed the PR when I just wanted to leave a comment. Sorry for messing up with the Code Review workflow! |
Thanks for fixing this high-priority customer-reported bug! 🪲 😺 🎉 |
VS2019 では std::jthread::native_handle() が実装されていない。 microsoft/STL#1966 そのため、std::threadで代替する。
Similar to
thread::native_handle()
, this PR addsjthread::native_handle()
which callsnative_handle
for internalthread
. I don't see any unit tests forthread::native_handle()
which is why I am not adding any unit tests for this code change.Resolves #1963