atomic.h File Reference

Atomic operations. More...

#include <atomicdflt.h>
#include <bool.h>
#include <sys/types.h>

Go to the source code of this file.

Defines

#define CAS
#define LIBC_ARCH_ATOMIC_H_

Functions

static atomic_count_t atomic_add (atomic_t *val, atomic_count_t i)
 Atomic addition.
static void atomic_dec (atomic_t *val)
 Atomic decrement.
static void atomic_inc (atomic_t *val)
 Atomic increment.
static atomic_count_t atomic_postdec (atomic_t *val)
 Atomic post-decrement.
static atomic_count_t atomic_postinc (atomic_t *val)
 Atomic post-increment.
static atomic_count_t atomic_predec (atomic_t *val)
 Atomic pre-decrement.
static atomic_count_t atomic_preinc (atomic_t *val)
 Atomic pre-increment.
static bool cas (atomic_t *val, atomic_count_t ov, atomic_count_t nv)


Detailed Description

Atomic operations.

Definition in file atomic.h.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7