MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / WithLock

Method WithLock

lib/utils/sync-helpers.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

checkConditionFunction · 0.80
RunActionsHelperMethod · 0.80
LoadMethod · 0.80
PostLoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected