diff options
author | Chris Robinson <[email protected]> | 2011-05-29 03:28:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-29 03:28:34 -0700 |
commit | 884f668855cea624165653f212fbec016d017a59 (patch) | |
tree | 002ad06329dcd2f6f5fe03480d561c9a7321eb8a /OpenAL32/Include | |
parent | 2bbe9d1b1f2fe4b866f025eb268c5421342cba9a (diff) |
Uninline a couple more functions
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 184c3249..b6986a07 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -215,18 +215,8 @@ typedef pthread_key_t tls_type; typedef pthread_mutex_t CRITICAL_SECTION; void InitializeCriticalSection(CRITICAL_SECTION *cs); void DeleteCriticalSection(CRITICAL_SECTION *cs); -static __inline void EnterCriticalSection(CRITICAL_SECTION *cs) -{ - int ret; - ret = pthread_mutex_lock(cs); - assert(ret == 0); -} -static __inline void LeaveCriticalSection(CRITICAL_SECTION *cs) -{ - int ret; - ret = pthread_mutex_unlock(cs); - assert(ret == 0); -} +void EnterCriticalSection(CRITICAL_SECTION *cs); +void LeaveCriticalSection(CRITICAL_SECTION *cs); /* NOTE: This wrapper isn't quite accurate as it returns an ALuint, as opposed * to the expected DWORD. Both are defined as unsigned 32-bit types, however. |