Crate atomik

Source
Expand description

Generic atomic

This Atomic allows only types whose size and alignment is compatible with u8, u16, u32, u64.

With exception of fetch_* methods, all atomic methods are implemented for generic T

fetch_* makes sense only to integers and partially for bool, hence they are implemented as specialized methods.

All methods require atomic support, if target has no atomics of required size, then it will fail to compile using particular methods.

§Features

  • critical-section-polyfill - Enables polyfill implementation for embedded targets based on critical section. This polyfill only valid for single threaded chips.

Structs§

Atomic
Generic atomic which allows any T to be used as lock-free atomic integer.

Enums§

Ordering
Atomic memory orderings