PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
generic.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define pg_read_barrier_impl   pg_memory_barrier_impl
 
#define pg_write_barrier_impl   pg_memory_barrier_impl
 
#define pg_spin_delay_impl()   ((void)0)
 
#define PG_HAVE_ATOMIC_READ_U32
 
#define PG_HAVE_ATOMIC_WRITE_U32
 
#define PG_HAVE_ATOMIC_UNLOCKED_WRITE_U32
 
#define PG_HAVE_ATOMIC_INIT_U32
 

Functions

static uint32 pg_atomic_read_u32_impl (volatile pg_atomic_uint32 *ptr)
 
static void pg_atomic_write_u32_impl (volatile pg_atomic_uint32 *ptr, uint32 val)
 
static void pg_atomic_unlocked_write_u32_impl (volatile pg_atomic_uint32 *ptr, uint32 val)
 
static void pg_atomic_init_u32_impl (volatile pg_atomic_uint32 *ptr, uint32 val_)
 

Macro Definition Documentation

#define PG_HAVE_ATOMIC_INIT_U32

Definition at line 159 of file generic.h.

#define PG_HAVE_ATOMIC_READ_U32

Definition at line 44 of file generic.h.

#define PG_HAVE_ATOMIC_UNLOCKED_WRITE_U32

Definition at line 62 of file generic.h.

#define PG_HAVE_ATOMIC_WRITE_U32

Definition at line 53 of file generic.h.

#define pg_read_barrier_impl   pg_memory_barrier_impl

Definition at line 25 of file generic.h.

#define pg_spin_delay_impl ( )    ((void)0)

Definition at line 33 of file generic.h.

#define pg_write_barrier_impl   pg_memory_barrier_impl

Definition at line 28 of file generic.h.

Function Documentation

static void pg_atomic_init_u32_impl ( volatile pg_atomic_uint32 ptr,
uint32  val_ 
)
inlinestatic

Definition at line 161 of file generic.h.

References pg_atomic_write_u32_impl().

162 {
163  pg_atomic_write_u32_impl(ptr, val_);
164 }
static void pg_atomic_write_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val)
Definition: generic.h:55
static uint32 pg_atomic_read_u32_impl ( volatile pg_atomic_uint32 ptr)
inlinestatic

Definition at line 46 of file generic.h.

References pg_atomic_uint32::value.

Referenced by pg_atomic_read_u32().

47 {
48  return *(&ptr->value);
49 }
static void pg_atomic_unlocked_write_u32_impl ( volatile pg_atomic_uint32 ptr,
uint32  val 
)
inlinestatic

Definition at line 64 of file generic.h.

References val, and pg_atomic_uint32::value.

Referenced by pg_atomic_unlocked_write_u32().

65 {
66  ptr->value = val;
67 }
long val
Definition: informix.c:689
static void pg_atomic_write_u32_impl ( volatile pg_atomic_uint32 ptr,
uint32  val 
)
inlinestatic

Definition at line 55 of file generic.h.

References val, and pg_atomic_uint32::value.

Referenced by pg_atomic_init_u32_impl().

56 {
57  ptr->value = val;
58 }
long val
Definition: informix.c:689