1
0
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:
sfan5
2024-10-09 23:51:27 +02:00
parent 99b6315c1a
commit 244f4f285a
3 changed files with 12 additions and 7 deletions

View File

@@ -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>;