mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 02:15:22 +02:00
Alias MutexAutoLock to the simpler std::lock_guard
This commit is contained in:
@@ -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>;
|
||||
|
Reference in New Issue
Block a user