Atomic operations

Some convenience functions are defined that allow you to perform atomic operations (i.e., operations that are guaranteed to be indivisible or uninterruptible). Using these functions alleviates the need to disable and enable interrupts around certain small, well-defined operations with variables.

QNX Neutrino defines the following in <atomic.h>:

C11 defines these in <stdatomic.h>:

See the QNX Neutrino C Library Reference for more information.