MCPcopy Create free account
hub / github.com/apache/qpid-proton / wait

Method wait

cpp/src/container_test.cpp:440–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 }
439
440 std::string wait() {
441 std::unique_lock<std::mutex> l(lock_);
442 while (str_.empty()) cond_.wait(l);
443 std::string s = str_;
444 str_.clear();
445 return s;
446 }
447
448 proton::error_condition error() const { return err_; }
449 void on_container_start(proton::container &) override { set("start"); }

Callers

nothing calls this directly

Calls 3

waitMethod · 0.65
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected