aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-11-04 12:12:31 -0800
committerChris Robinson <[email protected]>2013-11-04 12:12:31 -0800
commit551f893ae910c2b1b72c0a22aeab1ede75d3e5ed (patch)
tree1f41eaee75fdfd0d9cc1e0bfff8bce3bd7039aba /Alc/helpers.c
parent692ab1085dd75c0ac696f3effe61bc9223181547 (diff)
Use C99 inline semantics
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 6681fde7..94dedcf8 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -69,8 +69,24 @@ DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,
#endif
#include "alMain.h"
+#include "atomic.h"
+#include "uintmap.h"
#include "compat.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 ALboolean CompExchangeInt(volatile int *ptr, int oldval, int newval);
+extern inline ALboolean CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval);
+
+extern inline void LockUIntMapRead(UIntMap *map);
+extern inline void UnlockUIntMapRead(UIntMap *map);
+extern inline void LockUIntMapWrite(UIntMap *map);
+extern inline void UnlockUIntMapWrite(UIntMap *map);
+
+
ALuint CPUCapFlags = 0;