Add helpers for logging, translation, and synchronized data access

This commit is contained in:
WarmUpTill
2023-04-29 21:55:18 +02:00
committed by WarmUpTill
parent e4d064aaa3
commit 20eb56db2d
6 changed files with 63 additions and 0 deletions

11
src/utils/sync-helper.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "sync-helper.hpp"
namespace advss {
std::mutex *GetSwitcherMutex();
std::lock_guard<std::mutex> LockContext()
{
return std::lock_guard<std::mutex>(*GetSwitcherMutex());
}
} // namespace advss