-
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
What's the reason for TerminateThread? #3785
Comments
Linux equivalent is https://github.com/xianyi/OpenBLAS/blob/eece0dfd143013ca6572a8d3750af159209eb019/driver/others/blas_server.c#L1083 I think windows API does not have equivalent, one has to post CloseThread to the thread so it goes away, if it is busy at the point, i.e inside BLAS computation the terminatethread is the only option. i.e we shoot the cannon at the sparrow, and assume it went away, while we could try to whistle n clap first. |
From |
I think it is a call for some softer albeit more complex thread exit |
Thanks for the informations! I guess I can work on that |
Hi! Many thanks for the excellent work!
I see that OpenBLAS on Windows may end up calling TerminateThread. This is very dangerous API which should never be used under normal circumstances, as described in 1f60715
May I ask what's the reason for the TerminateThread call? I see that it's also excluded in UWP builds, could we just remove it?
Thank you very much!!!
Luca
The text was updated successfully, but these errors were encountered: