OPIC
Object Persistence In C
Macros | Typedefs | Functions | Variables
op_atomic.h File Reference

Go to the source code of this file.

Macros

#define atomic_check_in(PUNCH_CARD)
 
#define atomic_check_out(PUNCH_CARD)
 
#define atomic_book_critical(PUNCH_CARD)
 
#define atomic_check_in_book(PUNCH_CARD)
 
#define atomic_is_booked(PUNCH_CARD)
 
#define atomic_enter_critical(PUNCH_CARD)
 
#define atomic_exit_critical(PUNCH_CARD)
 
#define atomic_exit_check_out(PUNCH_CARD)
 

Typedefs

typedef _Atomic int16_t a_int16_t
 
typedef _Atomic int32_t a_int32_t
 
typedef _Atomic int64_t a_int64_t
 
typedef _Atomic uint8_t a_uint8_t
 
typedef _Atomic uint16_t a_uint16_t
 
typedef _Atomic uint32_t a_uint32_t
 
typedef _Atomic uint64_t a_uint64_t
 

Functions

static bool atomic_check_in_8 (a_int8_t *punch_card)
 
static bool atomic_check_in_16 (a_int16_t *punch_card)
 
static bool atomic_check_in_32 (a_int32_t *punch_card)
 
static bool atomic_check_in_64 (a_int64_t *punch_card)
 
static void atomic_check_out_8 (a_int8_t *punch_card)
 
static void atomic_check_out_16 (a_int16_t *punch_card)
 
static void atomic_check_out_32 (a_int32_t *punch_card)
 
static void atomic_check_out_64 (a_int64_t *punch_card)
 
static bool atomic_book_critical_8 (a_int8_t *punch_card)
 
static bool atomic_book_critical_16 (a_int16_t *punch_card)
 
static bool atomic_book_critical_32 (a_int32_t *punch_card)
 
static bool atomic_book_critical_64 (a_int64_t *punch_card)
 
static bool atomic_check_in_book_8 (a_int8_t *punch_card)
 
static bool atomic_check_in_book_16 (a_int16_t *punch_card)
 
static bool atomic_check_in_book_32 (a_int32_t *punch_card)
 
static bool atomic_check_in_book_64 (a_int64_t *punch_card)
 
static bool atomic_is_booked_8 (a_int8_t *punch_card)
 
static bool atomic_is_booked_16 (a_int16_t *punch_card)
 
static bool atomic_is_booked_32 (a_int32_t *punch_card)
 
static bool atomic_is_booked_64 (a_int64_t *punch_card)
 
static void atomic_enter_critical_8 (a_int8_t *punch_card)
 
static void atomic_enter_critical_16 (a_int16_t *punch_card)
 
static void atomic_enter_critical_32 (a_int32_t *punch_card)
 
static void atomic_enter_critical_64 (a_int64_t *punch_card)
 
static void atomic_exit_critical_8 (a_int8_t *punch_card)
 
static void atomic_exit_critical_16 (a_int16_t *punch_card)
 
static void atomic_exit_critical_32 (a_int32_t *punch_card)
 
static void atomic_exit_critical_64 (a_int64_t *punch_card)
 
static void atomic_exit_check_out_8 (a_int8_t *punch_card)
 
static void atomic_exit_check_out_16 (a_int16_t *punch_card)
 
static void atomic_exit_check_out_32 (a_int32_t *punch_card)
 
static void atomic_exit_check_out_64 (a_int64_t *punch_card)
 

Variables

OP_BEGIN_DECLS typedef _Atomic int8_t a_int8_t
 

Detailed Description

Author
Felix Chern
Date
: Fri Nov 25 12:25:48 2016 (-0800)

Definition in file op_atomic.h.

Macro Definition Documentation

◆ atomic_check_in

#define atomic_check_in (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_check_in_8, \
a_int16_t*: atomic_check_in_16, \
a_int32_t*: atomic_check_in_32, \
a_int64_t*: atomic_check_in_64) \
(PUNCH_CARD)

Definition at line 44 of file op_atomic.h.

◆ atomic_check_out

#define atomic_check_out (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_check_out_8, \
a_int16_t*: atomic_check_out_16, \
a_int32_t*: atomic_check_out_32, \
a_int64_t*: atomic_check_out_64) \
(PUNCH_CARD)

Definition at line 52 of file op_atomic.h.

◆ atomic_book_critical

#define atomic_book_critical (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_book_critical_8, \
a_int16_t*: atomic_book_critical_16, \
a_int32_t*: atomic_book_critical_32, \
a_int64_t*: atomic_book_critical_64) \
(PUNCH_CARD)

Definition at line 60 of file op_atomic.h.

◆ atomic_check_in_book

#define atomic_check_in_book (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_check_in_book_8, \
a_int16_t*: atomic_check_in_book_16, \
a_int32_t*: atomic_check_in_book_32, \
a_int64_t*: atomic_check_in_book_64) \
(PUNCH_CARD)

Definition at line 68 of file op_atomic.h.

◆ atomic_is_booked

#define atomic_is_booked (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_is_booked_8, \
a_int16_t*: atomic_is_booked_16, \
a_int32_t*: atomic_is_booked_32, \
a_int64_t*: atomic_is_booked_64) \
(PUNCH_CARD)

Definition at line 76 of file op_atomic.h.

◆ atomic_enter_critical

#define atomic_enter_critical (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_enter_critical_8, \
a_int16_t*: atomic_enter_critical_16, \
a_int32_t*: atomic_enter_critical_32, \
a_int64_t*: atomic_enter_critical_64) \
(PUNCH_CARD)

Definition at line 84 of file op_atomic.h.

◆ atomic_exit_critical

#define atomic_exit_critical (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_exit_critical_8, \
a_int16_t*: atomic_exit_critical_16, \
a_int32_t*: atomic_exit_critical_32, \
a_int64_t*: atomic_exit_critical_64) \
(PUNCH_CARD)

Definition at line 92 of file op_atomic.h.

◆ atomic_exit_check_out

#define atomic_exit_check_out (   PUNCH_CARD)
Value:
_Generic((PUNCH_CARD), \
a_int8_t*: atomic_exit_check_out_8, \
a_int16_t*: atomic_exit_check_out_16, \
a_int32_t*: atomic_exit_check_out_32, \
a_int64_t*: atomic_exit_check_out_64) \
(PUNCH_CARD)

Definition at line 100 of file op_atomic.h.