MCPcopy Create free account
hub / github.com/YACReader/yacreader / operator()

Method operator()

tests/concurrent_queue_test/concurrent_queue_test.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 : total { total }, data { data }, id { id } { }
117
118 void operator()()
119 {
120 log().nospace() << id << " sleep " << toMilliseconds(data.sleepingTime) << " ms...";
121 std::this_thread::sleep_for(data.sleepingTime);
122
123 const auto updatedTotal = (total += data.summand);
124 log().nospace() << id << " +" << data.summand << " => " << updatedTotal;
125 }
126
127private:
128 Total &total;

Callers

nothing calls this directly

Calls 2

logFunction · 0.85
toMillisecondsFunction · 0.85

Tested by

no test coverage detected