I am adding support for a new OS target to the Rust compiler. While implementing the thread local storage part of the standard library, I found this:
pub fn requires_synchronized_create() -> bool
- From std: Avoid locks during TLS destruction on Windows · rust-lang/rust@495c998 · GitHub, I understand that platforms where
Mutex::init()needs to be called after
Mutex::new()to use the mutex, those platforms should have
- Unix-like have this as false while Windows has this as true.
I am not sure what I should look in the OS documentation to determine if
requires_synchronized_create should be true or false for the platform I am working on. Any ideas on what I should look for?