zephyr::sync

Module atomic

source
Expand description

Re-export portable atomic.

Although core contains a sync::atomic module, these are dependent on the target having atomic instructions, and the types are missing when the platform cannot support them. Zephyr, however, does provide atomics on platforms that don’t support atomic instructions, using spinlocks. In the Rust-embedded world, this is done through the portable-atomic crate, which will either just re-export the types from core, or provide an implementation using spinlocks when those aren’t available.

Modules§

Macros§

Structs§

  • A boolean type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • A raw pointer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.

Enums§

Functions§