Orocos Real-Time Toolkit  2.9.0
Macros | Typedefs | Functions
oro_arch.h File Reference
#include "../../rtt-config.h"
#include <windows.h>
#include <intrin.h>

Go to the source code of this file.

Macros

#define ORO_ATOMIC_SETUP   oro_atomic_set
 
#define ORO_ATOMIC_CLEANUP(a_int)
 
#define oro_atomic_read(a_int)   (*(a_int))
 
#define oro_atomic_set(a_int, n)   (*(a_int) = (n))
 

Typedefs

typedef volatile long oro_atomic_t
 

Functions

template<typename T >
oro_cmpxchg (volatile void *ptr, T old, T _new)
 

Macro Definition Documentation

#define ORO_ATOMIC_CLEANUP (   a_int)

Definition at line 12 of file oro_arch.h.

#define oro_atomic_read (   a_int)    (*(a_int))

Definition at line 14 of file oro_arch.h.

#define oro_atomic_set (   a_int,
 
)    (*(a_int) = (n))

Definition at line 16 of file oro_arch.h.

#define ORO_ATOMIC_SETUP   oro_atomic_set

Definition at line 11 of file oro_arch.h.

Typedef Documentation

typedef volatile long oro_atomic_t

Definition at line 9 of file oro_arch.h.

Function Documentation

template<typename T >
T oro_cmpxchg ( volatile void *  ptr,
old,
_new 
)
inline

Definition at line 91 of file oro_arch.h.