#include <Windows.h>
#include "../compat/inttypes.h"
Go to the source code of this file.
Classes | |
struct | atomic_t |
Functions | |
static void | atomic_add (volatile atomic_t *v, int32_t i) |
Atomic addition function. | |
static void | atomic_incr (volatile atomic_t *v) |
Atomic subtraction function. | |
static void | atomic_decr (volatile atomic_t *v) |
Atomic decrement. | |
static bool | atomic_decr_test (volatile atomic_t *v) |
Atomic decrement and test. | |
static int32_t | atomic_cmpxchg32 (volatile atomic_t *v, int32_t o, int32_t n) |
Atomic compare and swap. |
static void atomic_add | ( | volatile atomic_t * | v, | |
int32_t | i | |||
) | [inline, static] |
Atomic addition function.
i | integer value to add | |
v | pointer to current value |
Definition at line 38 of file Atomic-win32.h.
static int32_t atomic_cmpxchg32 | ( | volatile atomic_t * | v, | |
int32_t | o, | |||
int32_t | n | |||
) | [inline, static] |
Atomic compare and swap.
Stores the new value iff the current value is the expected old value.
v | pointer to current value | |
o | old value to compare against | |
n | new value to store |
Definition at line 108 of file Atomic-win32.h.
static void atomic_decr | ( | volatile atomic_t * | v | ) | [inline, static] |
Atomic decrement.
v | pointer to current value |
Definition at line 77 of file Atomic-win32.h.
Atomic decrement and test.
v | pointer to current value |
Definition at line 92 of file Atomic-win32.h.
static void atomic_incr | ( | volatile atomic_t * | v | ) | [inline, static] |
Atomic subtraction function.
i | integer value to subtract | |
v | pointer to current value Atomic increment. | |
v | pointer to current value |
Definition at line 65 of file Atomic-win32.h.