VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Functions
vlc_atomic.h File Reference

Atomic operations do not require locking, but they are not very powerful. More...

Include dependency graph for vlc_atomic.h:

Go to the source code of this file.

Data Structures

struct  vlc_atomic_rc_t
 

Macros

#define VLC_ATOMIC_H
 

Typedefs

typedef struct vlc_atomic_rc_t vlc_atomic_rc_t
 

Functions

static void vlc_atomic_rc_init (vlc_atomic_rc_t *rc)
 Init the RC to 1. More...
 
static void vlc_atomic_rc_inc (vlc_atomic_rc_t *rc)
 Increment the RC. More...
 
static bool vlc_atomic_rc_dec (vlc_atomic_rc_t *rc)
 Decrement the RC and return true if it reaches 0. More...
 

Detailed Description

Atomic operations do not require locking, but they are not very powerful.

Macro Definition Documentation

◆ VLC_ATOMIC_H

#define VLC_ATOMIC_H

Typedef Documentation

◆ vlc_atomic_rc_t

Function Documentation

◆ vlc_atomic_rc_dec()

static bool vlc_atomic_rc_dec ( vlc_atomic_rc_t rc)
inlinestatic

◆ vlc_atomic_rc_inc()

static void vlc_atomic_rc_inc ( vlc_atomic_rc_t rc)
inlinestatic

◆ vlc_atomic_rc_init()

static void vlc_atomic_rc_init ( vlc_atomic_rc_t rc)
inlinestatic