blob: 02bbf066583369f1bf7b6011c4ac44455b11322d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "config.h"
#include "atomic.h"
extern inline RefCount IncrementRef(volatile RefCount *ptr);
extern inline RefCount DecrementRef(volatile RefCount *ptr);
extern inline int ExchangeInt(volatile int *ptr, int newval);
extern inline void *ExchangePtr(XchgPtr *ptr, void *newval);
extern inline int CompExchangeInt(volatile int *ptr, int oldval, int newval);
extern inline void *CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval);
|