initialize an ATOMIC_INT object
void ATOMIC_INT_INIT(atomic_int_t *counter, int value);
object for later use.
As part of the initialization,
the integer value within the object
referenced by counter is initialized to value.
Points to an ATOMIC_INT object to be initialized.
The value to store into the contents of counter.
object pointed to by counter must have been
previously allocated by
ATOMIC_INT_INIT may be called
multiple times for a single object.
However, the driver must serialize these calls by its own means
(for example, by using sleep locks).
``Atomic locks'' in HDK Technical Reference.
ATOMIC_INT_INIT does not serialize
with any other operation on ATOMIC_INT objects
(that is, it is not atomic).
Context and synchronization
6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
``Atomic locks'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005