plasma-umass / coz

Coz: Causal Profiling
Other
4.03k stars 160 forks source link

[Rust] Replace the usage of `AtomicUsize` with `OneCell` #211

Closed lopukhov closed 1 year ago

lopukhov commented 1 year ago

This PR changes the usage of AtomicUsize to OneCell and introduces an explicit function type that can be stored in the OneCell and used in the transmute.

Safety comments have also been included to explain the usage of unsafe.

emeryberger commented 1 year ago

Thanks!