Initializes an atomic variable, the destination should not have any expression associated with it prior to this call.
We use an out parameter instead of a pointer for destination in an attempt to communicate to the compiler that it initializers.
shared int val; atomic_init(val, 2);
See Implementation
Initializes an atomic variable, the destination should not have any expression associated with it prior to this call.
We use an out parameter instead of a pointer for destination in an attempt to communicate to the compiler that it initializers.