MCPcopy Create free account
hub / github.com/daniele77/cli / Post

Method Post

include/cli/loopscheduler.h:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void Post(const std::function<void()>& f) override
78 {
79 std::lock_guard<std::mutex> lck (mtx);
80 tasks.push(f);
81 cv.notify_all();
82 }
83
84 bool ExecOne()
85 {

Callers 5

SchedulingTestFunction · 0.45
SameThreadTestFunction · 0.45
ExceptionTestFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls

no outgoing calls

Tested by 5

SchedulingTestFunction · 0.36
SameThreadTestFunction · 0.36
ExceptionTestFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36