MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / ~Connection

Method ~Connection

src/Connection.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120Connection::~Connection()
121try
122{
123 Connection::leaveEventLoop();
124}
125catch (...) // NOLINT(bugprone-empty-catch)
126{
127 // Theoretically, we can fail to notify the event fd or join with the joinable thread...
128 // What to do now here in the destructor? That is the question:
129 // 1. Report the problem... but how, where?
130 // 2. Terminate immediately... too harsh?
131 // 3. Ignore and go on... even when some resources may be lingering?
132 // Since the failure here is expected to be very unlikely, we choose the defensive approach of (3).
133}
134
135void Connection::requestName(const ServiceName& name)
136{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected