aboutsummaryrefslogtreecommitdiffstats
path: root/common/uintmap.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-28 00:53:21 -0800
committerChris Robinson <[email protected]>2018-01-28 00:53:21 -0800
commitd1da9f1f679e94b3aa05c9d9d981c63e145399a5 (patch)
tree4d67431d8ccab7ff7e813ac2f7e6ccd2520f00db /common/uintmap.h
parentdcc5a10c7b8bbe6be82c992b6540fd1ad745b7a7 (diff)
Remove some now-unused NoLock function variants
Diffstat (limited to 'common/uintmap.h')
-rw-r--r--common/uintmap.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/common/uintmap.h b/common/uintmap.h
index 32cd1eaa..32868653 100644
--- a/common/uintmap.h
+++ b/common/uintmap.h
@@ -26,20 +26,13 @@ typedef struct UIntMap {
void InitUIntMap(UIntMap *map, ALsizei limit);
void ResetUIntMap(UIntMap *map);
ALenum InsertUIntMapEntry(UIntMap *map, ALuint key, ALvoid *value);
-ALenum InsertUIntMapEntryNoLock(UIntMap *map, ALuint key, ALvoid *value);
ALvoid *RemoveUIntMapKey(UIntMap *map, ALuint key);
-ALvoid *RemoveUIntMapKeyNoLock(UIntMap *map, ALuint key);
ALvoid *LookupUIntMapKey(UIntMap *map, ALuint key);
-ALvoid *LookupUIntMapKeyNoLock(UIntMap *map, ALuint key);
-
-inline void LockUIntMapRead(UIntMap *map)
-{ ReadLock(&map->lock); }
-inline void UnlockUIntMapRead(UIntMap *map)
-{ ReadUnlock(&map->lock); }
-inline void LockUIntMapWrite(UIntMap *map)
-{ WriteLock(&map->lock); }
-inline void UnlockUIntMapWrite(UIntMap *map)
-{ WriteUnlock(&map->lock); }
+
+inline void LockUIntMapRead(UIntMap *map) { ReadLock(&map->lock); }
+inline void UnlockUIntMapRead(UIntMap *map) { ReadUnlock(&map->lock); }
+inline void LockUIntMapWrite(UIntMap *map) { WriteLock(&map->lock); }
+inline void UnlockUIntMapWrite(UIntMap *map) { WriteUnlock(&map->lock); }
#ifdef __cplusplus
}