1
0
Fork 0
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:
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>;