diff options
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/base.c | 2 | ||||
-rw-r--r-- | Alc/backends/base.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Alc/backends/base.c b/Alc/backends/base.c index 5f568d8e..a451fee9 100644 --- a/Alc/backends/base.c +++ b/Alc/backends/base.c @@ -10,6 +10,8 @@ extern inline ALuint64 GetDeviceClockTime(ALCdevice *device); +extern inline void ALCdevice_Lock(ALCdevice *device); +extern inline void ALCdevice_Unlock(ALCdevice *device); /* Base ALCbackend method implementations. */ void ALCbackend_Construct(ALCbackend *self, ALCdevice *device) diff --git a/Alc/backends/base.h b/Alc/backends/base.h index 8464fdee..318e86fc 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -152,4 +152,11 @@ ALCbackendFactory *ALCnullBackendFactory_getFactory(void); ALCbackendFactory *ALCwaveBackendFactory_getFactory(void); ALCbackendFactory *ALCloopbackFactory_getFactory(void); + +inline void ALCdevice_Lock(ALCdevice *device) +{ V0(device->Backend,lock)(); } + +inline void ALCdevice_Unlock(ALCdevice *device) +{ V0(device->Backend,unlock)(); } + #endif /* AL_BACKENDS_BASE_H */ |