aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f3dcee39..3c547d4a 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1049,6 +1049,18 @@ void DeleteCriticalSection(CRITICAL_SECTION *cs)
ret = pthread_mutex_destroy(cs);
assert(ret == 0);
}
+void EnterCriticalSection(CRITICAL_SECTION *cs)
+{
+ int ret;
+ ret = pthread_mutex_lock(cs);
+ assert(ret == 0);
+}
+void LeaveCriticalSection(CRITICAL_SECTION *cs)
+{
+ int ret;
+ ret = pthread_mutex_unlock(cs);
+ assert(ret == 0);
+}
#endif