Make LockContext and UnlockContext inline again

This commit is contained in:
Chris Robinson
2013-11-02 12:05:02 -07:00
parent 7142e3828f
commit ddf521eddc
2 changed files with 5 additions and 12 deletions
-10
View File
@@ -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
*
+5 -2
View File
@@ -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);