MySQL 5.6.14 Source Code Document
|
#include <pfs_atomic.h>
Static Public Member Functions | |
static void | init () |
static void | cleanup () |
static int32 | load_32 (volatile int32 *ptr) |
static int64 | load_64 (volatile int64 *ptr) |
static uint32 | load_u32 (volatile uint32 *ptr) |
static uint64 | load_u64 (volatile uint64 *ptr) |
static void | store_32 (volatile int32 *ptr, int32 value) |
static void | store_64 (volatile int64 *ptr, int64 value) |
static void | store_u32 (volatile uint32 *ptr, uint32 value) |
static void | store_u64 (volatile uint64 *ptr, uint64 value) |
static int32 | add_32 (volatile int32 *ptr, int32 value) |
static int64 | add_64 (volatile int64 *ptr, int64 value) |
static uint32 | add_u32 (volatile uint32 *ptr, uint32 value) |
static uint64 | add_u64 (volatile uint64 *ptr, uint64 value) |
static bool | cas_32 (volatile int32 *ptr, int32 *old_value, int32 new_value) |
static bool | cas_64 (volatile int64 *ptr, int64 *old_value, int64 new_value) |
static bool | cas_u32 (volatile uint32 *ptr, uint32 *old_value, uint32 new_value) |
static bool | cas_u64 (volatile uint64 *ptr, uint64 *old_value, uint64 new_value) |
Helper for atomic operations.
Definition at line 27 of file pfs_atomic.h.
|
inlinestatic |
Atomic add.
Definition at line 108 of file pfs_atomic.h.
|
inlinestatic |
Atomic add.
Definition at line 118 of file pfs_atomic.h.
|
inlinestatic |
Atomic add.
Definition at line 128 of file pfs_atomic.h.
|
inlinestatic |
Atomic add.
Definition at line 138 of file pfs_atomic.h.
|
inlinestatic |
Atomic compare and swap.
Definition at line 148 of file pfs_atomic.h.
|
inlinestatic |
Atomic compare and swap.
Definition at line 159 of file pfs_atomic.h.
|
inlinestatic |
Atomic compare and swap.
Definition at line 170 of file pfs_atomic.h.
|
inlinestatic |
Atomic compare and swap.
Definition at line 182 of file pfs_atomic.h.
|
static |
Cleanup the PFS_atomic component.
Definition at line 71 of file pfs_atomic.cc.
|
static |
Initialise the PFS_atomic component.
Definition at line 63 of file pfs_atomic.cc.
|
inlinestatic |
Atomic load.
Definition at line 36 of file pfs_atomic.h.
|
inlinestatic |
Atomic load.
Definition at line 46 of file pfs_atomic.h.
|
inlinestatic |
Atomic load.
Definition at line 56 of file pfs_atomic.h.
|
inlinestatic |
Atomic load.
Definition at line 66 of file pfs_atomic.h.
|
inlinestatic |
Atomic store.
Definition at line 76 of file pfs_atomic.h.
|
inlinestatic |
Atomic store.
Definition at line 84 of file pfs_atomic.h.
|
inlinestatic |
Atomic store.
Definition at line 92 of file pfs_atomic.h.
|
inlinestatic |
Atomic store.
Definition at line 100 of file pfs_atomic.h.