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