diff options
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/base.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h index fc50af2b..93685d5a 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -41,8 +41,8 @@ struct BackendBase { virtual ClockLatency getClockLatency(); - virtual void lock() { mMutex.lock(); }; - virtual void unlock() { mMutex.unlock(); }; + virtual void lock() { mMutex.lock(); } + virtual void unlock() { mMutex.unlock(); } ALCdevice *mDevice; @@ -52,6 +52,8 @@ struct BackendBase { virtual ~BackendBase(); }; using BackendPtr = std::unique_ptr<BackendBase>; +using BackendUniqueLock = std::unique_lock<BackendBase>; +using BackendLockGuard = std::lock_guard<BackendBase>; enum class BackendType { Playback, |