| 9 | return &m; |
| 10 | } |
| 11 | std::unique_lock<std::mutex> *GetSwitcherLoopLock() |
| 12 | { |
| 13 | static std::mutex m; |
| 14 | static std::unique_lock<std::mutex> lock(m); |
| 15 | return &lock; |
| 16 | } |
| 17 | #else |
| 18 | std::mutex *GetSwitcherMutex(); |
| 19 | std::unique_lock<std::mutex> *GetSwitcherLoopLock(); |