aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
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;
}