P99
#define atomic_init (   OBJP,
  VAL 
)
Value:
p99_extension                                                  \
(void)({                                                       \
    P99_MAC_ARGS((p00_objp, OBJP), (p00_val, VAL));            \
    /* To take care of the atomic_flag and padding bytes. */   \
    memset(p00_objp, 0, sizeof *p00_objp);                     \
    P00_AT(p00_objp) = p00_val;                                \
  })

Initialize the object behind OBJP with value VAL.

VAL and the base type of OBJP must be assignment compatible.

Warning:
this should only be used in a context that is known to have no race condition
See also:
atomic_int

Definition at line 1060 of file p99_atomic.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines