openhcl_boot

Module single_threaded

Source
Expand description

Support for working with global variables in a single-threaded environment. In such an environment, it is safe to access globals even if they don’t implement Sync, since there is only one thread that can access them. But code still needs to be careful to avoid creating multiple mutable references to the same global. These types provide abstractions for doing this safely.

Macros§

  • off_stack 🔒
    Returns a mutable reference to a value that is stored as a global static variable rather than exist on the stack.

Structs§