atomic_win32.h File Reference
#include <windows.h>
#include "atomic.h"
Include dependency graph for atomic_win32.h:

Go to the source code of this file.

Macros

#define avpriv_atomic_int_get   atomic_int_get_win32
 
#define avpriv_atomic_int_set   atomic_int_set_win32
 
#define avpriv_atomic_int_add_and_fetch   atomic_int_add_and_fetch_win32
 
#define avpriv_atomic_ptr_cas   atomic_ptr_cas_win32
 

Functions

static int atomic_int_get_win32 (volatile int *ptr)
 
static void atomic_int_set_win32 (volatile int *ptr, int val)
 
static int atomic_int_add_and_fetch_win32 (volatile int *ptr, int inc)
 
static voidatomic_ptr_cas_win32 (void *volatile *ptr, void *oldval, void *newval)
 

Macro Definition Documentation

#define avpriv_atomic_int_add_and_fetch   atomic_int_add_and_fetch_win32

Definition at line 42 of file atomic_win32.h.

#define avpriv_atomic_int_get   atomic_int_get_win32

Definition at line 28 of file atomic_win32.h.

#define avpriv_atomic_int_set   atomic_int_set_win32

Definition at line 35 of file atomic_win32.h.

#define avpriv_atomic_ptr_cas   atomic_ptr_cas_win32

Definition at line 48 of file atomic_win32.h.

Function Documentation

static int atomic_int_add_and_fetch_win32 ( volatile int *  ptr,
int  inc 
)
inlinestatic

Definition at line 43 of file atomic_win32.h.

static int atomic_int_get_win32 ( volatile int *  ptr)
inlinestatic

Definition at line 29 of file atomic_win32.h.

static void atomic_int_set_win32 ( volatile int *  ptr,
int  val 
)
inlinestatic

Definition at line 36 of file atomic_win32.h.

static void* atomic_ptr_cas_win32 ( void *volatile *  ptr,
void oldval,
void newval 
)
inlinestatic

Definition at line 49 of file atomic_win32.h.