summaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 20:21:28 -0700
committerChris Robinson <[email protected]>2011-08-29 20:21:28 -0700
commite4a2b69b37dcefcf2939bc020421daa467a64f43 (patch)
tree233dd2d7aed50420392ee4eca9a12c7d2530c2a7 /Alc/ALu.c
parent8eaa9bb4691dbd479236771064b958bedcdab145 (diff)
Make specific functions to lock/unlock UIntMap access
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 7300a81e..8c0901a1 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1123,7 +1123,7 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
ALsource *source;
ALsizei pos;
- ReadLock(&Context->SourceMap.lock);
+ LockUIntMapRead(&Context->SourceMap);
for(pos = 0;pos < Context->SourceMap.size;pos++)
{
source = Context->SourceMap.array[pos].value;
@@ -1135,7 +1135,7 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
source->position_fraction = 0;
}
}
- ReadUnlock(&Context->SourceMap.lock);
+ UnlockUIntMapRead(&Context->SourceMap);
Context = Context->next;
}