-
Notifications
You must be signed in to change notification settings - Fork 8
Thread-Local Variable Destructors #43
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
Comments
I think this would be part of wasi-sdk, as part of its support for C++ in general. I don't think there should be any need for the wasi-threads proposal to include specific support for this. |
Well |
With C++ its up to clang to generate Does rust support wasi-threads yet? Does it build on top of wasi-libc's pthread support to try to roll it own? If it rolls its own then it sounds like it just be matter of implementing |
Not as far as I know.
It's using
I think this is where the crux of the issue is. Different languages need to coordinate a single place to call I don't know the details here, but in this specific case it might not matter, because if both C++ and Rust are using In any case, it might be useful to make everybody agree on a single place to call (My original motivation isn't Wasi but Wasm, which faces the same problem, but doesn't have a corresponding |
@daxpedda, last year we got approval to add a new target,
Why hasn't this been done already? Well, I would like to get to this task but have been busy with other work. My sense is that parts of this would be straightforward but we might discover, by digging into the code, some issues that could be bigger (e.g., spec or tool conventions). @daxpedda, are you interested in working on this? We can chat more on Zulip if you would like to discuss more. |
Uh oh!
There was an error while loading. Please reload this page.
I was wondering what the plans are for thread-local variable destructors in Wasi, is this in scope at all?
Typically something like
__cxa_thread_atexit
would be necessary.The text was updated successfully, but these errors were encountered: