include/atomic.h File Reference

Implementation of atomic operations. More...

#include <compiler.h>
#include <stdint.h>

Include dependency graph for atomic.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static atomic_t atomic_add (atomic_t *ptr, uint32_t value)
 Atomically add value to the value stored at ptr.
static atomic_t atomic_sub (atomic_t *ptr, uint32_t value)
 Atomically subtract value from the value stored at ptr.


Detailed Description

Implementation of atomic operations.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file atomic.h.


Function Documentation

static atomic_t atomic_add ( atomic_t *  ptr,
uint32_t  value 
) [inline, static]

Atomically add value to the value stored at ptr.

Returns:
The result of the addition

Definition at line 67 of file atomic.h.

static atomic_t atomic_sub ( atomic_t *  ptr,
uint32_t  value 
) [inline, static]

Atomically subtract value from the value stored at ptr.

Returns:
The result of the subtraction

Definition at line 79 of file atomic.h.


Generated on Tue Sep 15 10:20:32 2009 for libavr32 by  doxygen 1.5.8