mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Alias MutexAutoLock to the simpler std::lock_guard
This commit is contained in:
parent
99b6315c1a
commit
244f4f285a
3 changed files with 12 additions and 7 deletions
|
@ -26,5 +26,8 @@ DEALINGS IN THE SOFTWARE.
|
|||
#pragma once
|
||||
|
||||
#include <mutex>
|
||||
using MutexAutoLock = std::unique_lock<std::mutex>;
|
||||
using RecursiveMutexAutoLock = std::unique_lock<std::recursive_mutex>;
|
||||
|
||||
/// @deprecated use std::lock_guard directly
|
||||
using MutexAutoLock = std::lock_guard<std::mutex>;
|
||||
/// @deprecated use std::lock_guard directly
|
||||
using RecursiveMutexAutoLock = std::lock_guard<std::recursive_mutex>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue