diff options
author | Chris Robinson <[email protected]> | 2013-11-02 12:05:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-02 12:05:02 -0700 |
commit | ddf521eddce2552ca7fdb3ba3255cf8f224489d4 (patch) | |
tree | 7951ad0f6914d2a668b6c3bd35583d2098413276 | |
parent | 7142e3828f4f6083484c9aa2f0fe1b67f64265d6 (diff) |
Make LockContext and UnlockContext inline again
-rw-r--r-- | Alc/ALc.c | 10 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 7 |
2 files changed, 5 insertions, 12 deletions
@@ -1415,16 +1415,6 @@ void ALCdevice_Unlock(ALCdevice *device) VCALL0(device->Backend,unlock)(); } -void LockContext(ALCcontext *context) -{ - ALCdevice_Lock(context->Device); -} - -void UnlockContext(ALCcontext *context) -{ - ALCdevice_Unlock(context->Device); -} - /* SetDefaultWFXChannelOrder * diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index de6f2613..dbc184af 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -512,8 +512,11 @@ void ALCdevice_Lock(ALCdevice *device); void ALCdevice_Unlock(ALCdevice *device); ALint64 ALCdevice_GetLatency(ALCdevice *device); -void LockContext(ALCcontext *context); -void UnlockContext(ALCcontext *context); +static inline void LockContext(ALCcontext *context) +{ ALCdevice_Lock(context->Device); } + +static inline void UnlockContext(ALCcontext *context) +{ ALCdevice_Unlock(context->Device); } void *al_malloc(size_t alignment, size_t size); |