matklad / once_cell

Rust library for single assignment cells and lazy statics without macros
Apache License 2.0
1.87k stars 109 forks source link

add support for platforms without atomic ptr #248

Closed LinuxHeki closed 1 month ago

LinuxHeki commented 1 year ago

Add support for platforms without support for atomic operations on pointers (such as thumbv6m-none-eabi).

LinuxHeki commented 1 year ago

True... Does that mean this crate can't be ported platforms without atomic ptr?

taiki-e commented 11 months ago

platforms without atomic ptr

"critical-section" feature is a feature to use sync/race in such targets. https://github.com/matklad/once_cell/blob/c48d3c2c01de926228aea2ac1d03672b4ce160c1/Cargo.toml#L48-L51

briansmith commented 4 months ago

Should this be closed now?