Make basis library thread-safe
ramLlama opened this issue · 1 comments
ramLlama commented
The basis library has a few parts that are written with a sequential implementation in mind. This issue is to collect and track these parts of the basis and efforts to fix them.
- Int.toString
- Random
- Readl.fromLargeInt (and possibly other Real.from* functions)
ramLlama commented
Most of these issues can be fixed with a SML-level thread local storage. Perhaps this can be rolled into the One
structure that most of these functions already use to protect against signal handlers.