MCPcopy Create free account
hub / github.com/XpuOS/xsched / Sync

Method Sync

utils/src/psync.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void ProcessSync::Sync(int expected_cnt)
44{
45 AO_ADD(shm_ptr_, 1);
46 while (AO_GET(shm_ptr_) != expected_cnt) {
47 std::this_thread::sleep_for(std::chrono::milliseconds(1));
48 }
49}
50
51void ProcessSync::Sync(int expected_cnt, const char *client_name)
52{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected