Browse Source
This change switches from `Mutex<u64>` to `AtomicU64`, which is faster and somewhat more elegant to write. It keeps the `Counter` type for backwards compatibility. The downside is that it doesn't work on as many platforms and requires fairly recent compiler.atomic_counter
Martin Habovstiak
5 years ago
1 changed files with 5 additions and 6 deletions
Loading…
Reference in new issue