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