#include "sync-helpers.hpp" namespace advss { std::mutex *GetSwitcherMutex(); std::unique_lock *GetSwitcherLoopLock(); std::mutex *GetMutex() { return GetSwitcherMutex(); } std::lock_guard LockContext() { return std::lock_guard(*GetSwitcherMutex()); } std::unique_lock *GetLoopLock() { return GetSwitcherLoopLock(); } } // namespace advss