Structure SilcAtomic32
NAME
typedef struct { ... } SilcAtomic32;
DESCRIPTION
The atomic operation structure given as argument to all atomic
operation functions. It hols the actual 32-bit atomic variable.
EXAMPLE
SilcAtomic32 refcnt;
// Initialize atomic variable
silc_atomic_init32(&refcnt, 0);
...
// Increment referene counter
silc_atomic_add_int32(&refcnt, 1);
...
// Uninitialize atomic variable
silc_atomic_uninit32(&refcnt);
|