mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-30 13:15:43 -05:00
Add helpers for logging, translation, and synchronized data access
This commit is contained in:
11
src/utils/sync-helper.cpp
Normal file
11
src/utils/sync-helper.cpp
Normal 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
|
||||
Reference in New Issue
Block a user