diff options
author | Chris Robinson <[email protected]> | 2011-08-29 20:21:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-29 20:21:28 -0700 |
commit | e4a2b69b37dcefcf2939bc020421daa467a64f43 (patch) | |
tree | 233dd2d7aed50420392ee4eca9a12c7d2530c2a7 /OpenAL32/Include/alMain.h | |
parent | 8eaa9bb4691dbd479236771064b958bedcdab145 (diff) |
Make specific functions to lock/unlock UIntMap access
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index fd645218..9a7c1cc4 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -322,6 +322,14 @@ ALenum InsertUIntMapEntry(UIntMap *map, ALuint key, ALvoid *value); void RemoveUIntMapKey(UIntMap *map, ALuint key); ALvoid *LookupUIntMapKey(UIntMap *map, ALuint key); +static __inline void LockUIntMapRead(UIntMap *map) +{ ReadLock(&map->lock); } +static __inline void UnlockUIntMapRead(UIntMap *map) +{ ReadUnlock(&map->lock); } +static __inline void LockUIntMapWrite(UIntMap *map) +{ WriteLock(&map->lock); } +static __inline void UnlockUIntMapWrite(UIntMap *map) +{ WriteUnlock(&map->lock); } #include "alListener.h" #include "alu.h" |