Skip to content

JS atomics compatible with Emscripten/C++ atomics? #18850

Answered by sbc100
allan-bonadio asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can mix C++ and JS atomics, they should have the same semantics.

Of course, using bare atomics can painful and risky so you can also just call the native helper functions functions such as emscripten_futex_wait and emscripten_futex_wake from JS if you want to interoperate with them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by allan-bonadio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants