MCPcopy Create free account
hub / github.com/TheHPXProject/hpx / both

Function both

examples/quickstart/composable_guard.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 // implicitly unlock l2
51}
52void both()
53{
54 // implicitly lock l1 and l2
55 int tmp = i1.load();
56 i1.compare_exchange_strong(tmp, tmp + 1);
57 tmp = i2.load();
58 i2.compare_exchange_strong(tmp, tmp + 1);
59 // implicitly unlock l1 and l2
60}
61
62int increments = 3000;
63

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected