vdr-plugin-softhddevice-drm-gles 1.4.0
Macros | Typedefs
iatomic.h File Reference

Atomic wrapper macros function header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define atomic_set(ptr, val)    __atomic_store_n(ptr, val, __ATOMIC_SEQ_CST)
 Set atomic value. More...
 
#define atomic_read(ptr)    __atomic_load_n(ptr, __ATOMIC_SEQ_CST)
 Read atomic value. More...
 
#define atomic_inc(ptr)    __atomic_add_fetch(ptr, 1, __ATOMIC_SEQ_CST)
 Increment atomic value. More...
 
#define atomic_dec(ptr)    __atomic_sub_fetch(ptr, 1, __ATOMIC_SEQ_CST)
 Decrement atomic value. More...
 
#define atomic_add(val, ptr)    __atomic_add_fetch(ptr, val, __ATOMIC_SEQ_CST)
 Add to atomic value. More...
 
#define atomic_sub(val, ptr)    __atomic_sub_fetch(ptr, val, __ATOMIC_SEQ_CST)
 Subtract from atomic value. More...
 

Typedefs

typedef volatile int atomic_t
 atomic type, 24 bit useable More...
 

Detailed Description

Atomic wrapper macros function header file.

Definition in file iatomic.h.

Macro Definition Documentation

◆ atomic_add

#define atomic_add (   val,
  ptr 
)     __atomic_add_fetch(ptr, val, __ATOMIC_SEQ_CST)

Add to atomic value.

Definition at line 51 of file iatomic.h.

◆ atomic_dec

#define atomic_dec (   ptr)     __atomic_sub_fetch(ptr, 1, __ATOMIC_SEQ_CST)

Decrement atomic value.

Definition at line 45 of file iatomic.h.

◆ atomic_inc

#define atomic_inc (   ptr)     __atomic_add_fetch(ptr, 1, __ATOMIC_SEQ_CST)

Increment atomic value.

Definition at line 39 of file iatomic.h.

◆ atomic_read

#define atomic_read (   ptr)     __atomic_load_n(ptr, __ATOMIC_SEQ_CST)

Read atomic value.

Definition at line 33 of file iatomic.h.

◆ atomic_set

#define atomic_set (   ptr,
  val 
)     __atomic_store_n(ptr, val, __ATOMIC_SEQ_CST)

Set atomic value.

Definition at line 27 of file iatomic.h.

◆ atomic_sub

#define atomic_sub (   val,
  ptr 
)     __atomic_sub_fetch(ptr, val, __ATOMIC_SEQ_CST)

Subtract from atomic value.

Definition at line 57 of file iatomic.h.

Typedef Documentation

◆ atomic_t

typedef volatile int atomic_t

atomic type, 24 bit useable

Definition at line 22 of file iatomic.h.