#include "../../rtt-config.h"
#include <windows.h>
#include <intrin.h>
Go to the source code of this file.
|
static __forceinline void | oro_atomic_add (oro_atomic_t *a_int, int n) |
|
static __forceinline int | oro_atomic_add_negative (oro_atomic_t *a_int, int n) |
|
static __forceinline int | oro_atomic_add_return (oro_atomic_t *a_int, int n) |
|
static __forceinline int | oro_atomic_clear_mask (oro_atomic_t *a_int, int mask) |
|
static __forceinline void | oro_atomic_dec (oro_atomic_t *a_int) |
|
static __forceinline int | oro_atomic_dec_and_test (oro_atomic_t *a_int) |
|
static __forceinline int | oro_atomic_dec_return (oro_atomic_t *a_int) |
|
static __forceinline void | oro_atomic_inc (oro_atomic_t *a_int) |
|
static __forceinline int | oro_atomic_inc_and_test (oro_atomic_t *a_int) |
|
static __forceinline int | oro_atomic_inc_return (oro_atomic_t *a_int) |
|
static __forceinline int | oro_atomic_set_mask (oro_atomic_t *a_int, int mask) |
|
static __forceinline void | oro_atomic_sub (oro_atomic_t *a_int, int n) |
|
static __forceinline int | oro_atomic_sub_and_test (oro_atomic_t *a_int, int n) |
|
static __forceinline int | oro_atomic_sub_return (oro_atomic_t *a_int, int n) |
|
template<typename T > |
T | oro_cmpxchg (volatile void *ptr, T old, T _new) |
|
#define ORO_ATOMIC_CLEANUP |
( |
|
a_int | ) |
|
#define oro_atomic_read |
( |
|
a_int | ) |
(*(a_int)) |
#define oro_atomic_set |
( |
|
a_int, |
|
|
|
n |
|
) |
| (*(a_int) = (n)) |
static __forceinline void oro_atomic_add |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
static __forceinline int oro_atomic_add_negative |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
static __forceinline int oro_atomic_add_return |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
static __forceinline int oro_atomic_clear_mask |
( |
oro_atomic_t * |
a_int, |
|
|
int |
mask |
|
) |
| |
|
static |
static __forceinline void oro_atomic_dec |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline int oro_atomic_dec_and_test |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline int oro_atomic_dec_return |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline void oro_atomic_inc |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline int oro_atomic_inc_and_test |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline int oro_atomic_inc_return |
( |
oro_atomic_t * |
a_int | ) |
|
|
static |
static __forceinline int oro_atomic_set_mask |
( |
oro_atomic_t * |
a_int, |
|
|
int |
mask |
|
) |
| |
|
static |
static __forceinline void oro_atomic_sub |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
static __forceinline int oro_atomic_sub_and_test |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
static __forceinline int oro_atomic_sub_return |
( |
oro_atomic_t * |
a_int, |
|
|
int |
n |
|
) |
| |
|
static |
template<typename T >
T oro_cmpxchg |
( |
volatile void * |
ptr, |
|
|
T |
old, |
|
|
T |
_new |
|
) |
| |
|
inline |