MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / DoLocked

Function DoLocked

01.14-invocable0/main.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11template<typename T>
12void DoLocked(T&& f)
13{
14 std::lock_guard lck{globalOsMutex};
15
16 f();
17}
18
19int main()
20{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected