Crate global_counter[−][src]
This crate implements global, thread-safe counters.
Concerning performance, the general ranking is, from fastest to slowest:
- Flushing primitive counters
- Approximate primitive counters
- Exact primitive atomic counters
- Generic counter
Don’t forget to make your own benchmarks, as those are very specific to the computing system in general and, in this case, to the OS in specific.
Modules
generic | This module contains a global, generic counter and the accompanying |
primitive | This module contains global counters for primitive integer types. |
Macros
global_counter | Creates a new global, generic counter, starting from the given value. |
global_default_counter | Creates a new generic, global counter, starting from its default value. |