MCPcopy Create free account
hub / github.com/apache/brpc / Destroy

Method Destroy

src/brpc/input_messenger.cpp:567–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void InputMessageBase::Destroy() {
568 // Release base-specific resources.
569 if (_socket) {
570 _socket->CheckEOF();
571 _socket.reset();
572 }
573 DestroyImpl();
574 // This object may be destroyed, don't touch fields anymore.
575}
576
577Socket* InputMessageBase::ReleaseSocket() {
578 Socket* s = _socket.release();

Callers

nothing calls this directly

Calls 3

DestroyImplFunction · 0.85
CheckEOFMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected