|
Motr
M0
|
#include "motr/config.h"#include "lib/assert.h"#include "lib/types.h"#include "lib/user_space/user_x86_64_atomic.h"
Go to the source code of this file.
Macros | |
| #define | __MOTR_LIB_ATOMIC_H__ |
| #define | M0_ATOMIC64_CAS(loc, oldval, newval) |
Functions | |
| static void | m0_atomic64_set (struct m0_atomic64 *a, int64_t num) |
| static int64_t | m0_atomic64_get (const struct m0_atomic64 *a) |
| static void | m0_atomic64_inc (struct m0_atomic64 *a) |
| static void | m0_atomic64_dec (struct m0_atomic64 *a) |
| static void | m0_atomic64_add (struct m0_atomic64 *a, int64_t num) |
| static void | m0_atomic64_sub (struct m0_atomic64 *a, int64_t num) |
| static int64_t | m0_atomic64_add_return (struct m0_atomic64 *a, int64_t d) |
| static int64_t | m0_atomic64_sub_return (struct m0_atomic64 *a, int64_t d) |
| static bool | m0_atomic64_inc_and_test (struct m0_atomic64 *a) |
| static bool | m0_atomic64_dec_and_test (struct m0_atomic64 *a) |
| static bool | m0_atomic64_cas (int64_t *loc, int64_t oldval, int64_t newval) |
| static bool | m0_atomic64_cas_ptr (void **loc, void *oldval, void *newval) |
| static void | m0_mb (void) |