FreeRTOS:
Platform
Platform portability layer
|
Return to main page ↑ |
Atomic operations: small inlined functions used for atomically manipulating memory.
The platform atomic component provides lock-free and wait-free mutually exclusive access to a memory location.
Unlike the other components of the platform layer, which rely on APIs provided by the host operating system, the atomic component relies on facilities provided by compilers. Many compilers, particularly recent versions that support C11 atomic features, provide compiler intrinsics for atomic operations.
FreeRTOS ported atomic.h provides a generic implementation. Compiler/architecture dependent implementation of atomic.h is to be provided under each port directory.
Dependencies of the platform atomics component.