aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-29 03:28:34 -0700
committerChris Robinson <[email protected]>2011-05-29 03:28:34 -0700
commit884f668855cea624165653f212fbec016d017a59 (patch)
tree002ad06329dcd2f6f5fe03480d561c9a7321eb8a /Alc/ALc.c
parent2bbe9d1b1f2fe4b866f025eb268c5421342cba9a (diff)
Uninline a couple more functions
Diffstat (limited to 'Alc/ALc.c')
-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