pub unsafe fn aws_atomic_init_int(var: *mut AwsCAtomicVar, n: usize)
Expand description

Initializes an atomic variable with an integer value. This operation should be done before any other operations on this atomic variable, and must be done before attempting any parallel operations.

This operation does not imply a barrier. Ensure that you use an acquire-release barrier (or stronger) when communicating the fact that initialization is complete to the other thread. Launching the thread implies a sufficiently strong barrier.

Safety

The caller must ensure that the AwsCAtomicVar pointer is valid.