vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
ringbuffer.h File Reference

Ringbuffer class header file. More...

#include <cstddef>

Go to the source code of this file.

Classes

class  cSoftHdRingbuffer
 cSoftHdRingbuffer - RingBuffer class More...
 

Macros

#define atomic_set(ptr, val)   __atomic_store_n(ptr, val, __ATOMIC_SEQ_CST)
 
#define atomic_read(ptr)   __atomic_load_n(ptr, __ATOMIC_SEQ_CST)
 
#define atomic_inc(ptr)   __atomic_add_fetch(ptr, 1, __ATOMIC_SEQ_CST)
 
#define atomic_dec(ptr)   __atomic_sub_fetch(ptr, 1, __ATOMIC_SEQ_CST)
 
#define atomic_add(val, ptr)   __atomic_add_fetch(ptr, val, __ATOMIC_SEQ_CST)
 
#define atomic_sub(val, ptr)   __atomic_sub_fetch(ptr, val, __ATOMIC_SEQ_CST)
 

Typedefs

typedef volatile int atomic_t
 Atomic wrapper macros.
 

Detailed Description

Ringbuffer class header file.

Definition in file ringbuffer.h.

Macro Definition Documentation

◆ atomic_add

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

Definition at line 35 of file ringbuffer.h.

◆ atomic_dec

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

Definition at line 34 of file ringbuffer.h.

◆ atomic_inc

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

Definition at line 33 of file ringbuffer.h.

◆ atomic_read

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

Definition at line 32 of file ringbuffer.h.

◆ atomic_set

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

Definition at line 31 of file ringbuffer.h.

◆ atomic_sub

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

Definition at line 36 of file ringbuffer.h.

Typedef Documentation

◆ atomic_t

typedef volatile int atomic_t

Atomic wrapper macros.

atomic type, 24 bit useable

Definition at line 29 of file ringbuffer.h.