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

Method close

cpp/examples/multithreaded_client_flow_control.cpp:191–200  ·  view source on GitHub ↗

Thread safe

Source from the content-addressed store, hash-verified

189
190 // Thread safe
191 void close() {
192 std::lock_guard<std::mutex> l(lock_);
193 if (!closed_) {
194 closed_ = true;
195 can_receive_.notify_all();
196 if (work_queue_) {
197 work_queue_->add([this]() { this->receiver_.connection().close(); });
198 }
199 }
200 }
201
202 private:
203 // ==== The following are called by proton threads only.

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
closeMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected