| 61 | } |
| 62 | |
| 63 | void Lockable::WithLock(const std::function<void()> &func) |
| 64 | { |
| 65 | const auto lock = Lock(); |
| 66 | func(); |
| 67 | } |
| 68 | |
| 69 | SuspendLock::SuspendLock(Lockable &lockable) |
| 70 | : _mtx(static_cast<std::mutex &>(lockable._mtx)) |
no outgoing calls
no test coverage detected