diff options
author | Chris Robinson <[email protected]> | 2018-12-30 21:38:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-30 21:38:42 -0800 |
commit | 9f5c9a2260849240bd680b8fdf533acdef7f9de1 (patch) | |
tree | d7e1c5873e323e7edcd96c1a2a037ea18063501c /OpenAL32/Include/alMain.h | |
parent | 3df1d185f8bcf8d470249594a15d0e781a705ca2 (diff) |
Rename BackendLock to StateLock
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e23eb1fb..5e53a047 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -785,7 +785,11 @@ struct ALCdevice_struct { // Contexts created on this device std::atomic<ALCcontext*> ContextList{nullptr}; - std::mutex BackendLock; + /* This lock protects the device state (format, update size, etc) from + * being from being changed in multiple threads, or being accessed while + * being changed. It's also used to serialize calls to the backend. + */ + std::mutex StateLock; std::unique_ptr<BackendBase> Backend; std::atomic<ALCdevice*> next{nullptr}; |