hazard3-sync 0.3.1

no_std, no-alloc synchronization primitives for async RISC-V embedded systems.
Documentation
1
2
3
4
5
6
use hazard3_sync::once_lock::OnceLock;

// *mut u8 is not Sync, so OnceLock should not implement Sync for this type. This should fail to compile.
static GLOBAL: OnceLock<*mut u8> = OnceLock::new();

fn main() {}