Orocos Real-Time Toolkit  2.9.0
Classes | Macros
oro_arch.h File Reference
#include "../../rtt-config.h"
#include "../fosi.h"

Go to the source code of this file.

Classes

struct  oro_atomic_t
 Structure that contains an int for atomic operations. More...
 

Macros

#define __inline__
 
#define ORO_ATOMIC_SETUP(a_int, n)   rtos_mutex_init(&((a_int)->m)); (a_int)->cnter = (n)
 
#define ORO_ATOMIC_CLEANUP(a_int)   rtos_mutex_destroy(&((a_int)->m))
 
#define oro_atomic_read(a_int)   ((a_int)->cnter)
 
#define oro_atomic_set(a_int, n)   (((a_int)->cnter) = (n))
 

Macro Definition Documentation

#define __inline__

Definition at line 52 of file oro_arch.h.

#define ORO_ATOMIC_CLEANUP (   a_int)    rtos_mutex_destroy(&((a_int)->m))

Definition at line 65 of file oro_arch.h.

#define oro_atomic_read (   a_int)    ((a_int)->cnter)

Definition at line 67 of file oro_arch.h.

#define oro_atomic_set (   a_int,
 
)    (((a_int)->cnter) = (n))

Definition at line 69 of file oro_arch.h.

#define ORO_ATOMIC_SETUP (   a_int,
 
)    rtos_mutex_init(&((a_int)->m)); (a_int)->cnter = (n)

Definition at line 64 of file oro_arch.h.