Atomic operations

Some convenience functions are defined in the include file <atomic.h> 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, such as:

See the QNX Neutrino C Library Reference under atomic_*() for more information.