MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / closePort

Method closePort

src/remote/client/interface.cpp:10084–10095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10082
10083
10084void ClientPortsCleanup::closePort(rem_port* port)
10085{
10086 RefMutexEnsureUnlock guard(*port->port_sync, FB_FUNCTION);
10087
10088 if (port->port_flags & PORT_disconnect)
10089 return;
10090
10091 if (guard.tryEnter())
10092 Remote::finalize(port);
10093 else
10094 PortsCleanup::closePort(port);
10095}
10096
10097
10098RmtAuthBlock::RmtAuthBlock(const AuthReader::AuthBlock& aBlock)

Callers

nothing calls this directly

Calls 3

finalizeFunction · 0.85
closePortFunction · 0.85
tryEnterMethod · 0.45

Tested by

no test coverage detected