Skip to content

sincos and thread safety #382

Answered by kgryte
ghalimi asked this question in Q&A
Feb 21, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This means that, if someone was porting to a language supporting multiple threads (e.g., C), then porting as is would not be thread safe. In JavaScript, we can elevate memory allocations out of functions as code does not need be reentrant. In C, we would not be able to do so.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@trusktr
Comment options

@kgryte
Comment options

@kgryte
Comment options

Answer selected by kgryte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question General question. Math Issue or pull request specific to math functionality.
3 participants