PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
void | pg_atomic_init_u64_impl (volatile pg_atomic_uint64 *ptr, uint64 val_) |
bool | pg_atomic_compare_exchange_u64_impl (volatile pg_atomic_uint64 *ptr, uint64 *expected, uint64 newval) |
uint64 | pg_atomic_fetch_add_u64_impl (volatile pg_atomic_uint64 *ptr, int64 add_) |
bool pg_atomic_compare_exchange_u64_impl | ( | volatile pg_atomic_uint64 * | ptr, |
uint64 * | expected, | ||
uint64 | newval | ||
) |
Definition at line 34 of file atomics.c.
References newval, pg_atomic_uint64::sema, SpinLockAcquire, SpinLockRelease, and pg_atomic_uint64::value.
Referenced by pg_atomic_compare_exchange_u64(), and pg_atomic_read_u64_impl().
uint64 pg_atomic_fetch_add_u64_impl | ( | volatile pg_atomic_uint64 * | ptr, |
int64 | add_ | ||
) |
Definition at line 62 of file atomics.c.
References pg_atomic_uint64::sema, SpinLockAcquire, SpinLockRelease, and pg_atomic_uint64::value.
Referenced by pg_atomic_fetch_add_u64().
void pg_atomic_init_u64_impl | ( | volatile pg_atomic_uint64 * | ptr, |
uint64 | val_ | ||
) |
Definition at line 24 of file atomics.c.
References pg_atomic_uint64::sema, SpinLockInit, StaticAssertDecl, and pg_atomic_uint64::value.
Referenced by pg_atomic_init_u64().