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

Method clearConnections

src/jrd/extds/ExtDS.cpp:543–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void Provider::clearConnections(thread_db* tdbb)
544{
545 fb_assert(!tdbb || !tdbb->getDatabase());
546
547 MutexLockGuard guard(m_mutex, FB_FUNCTION);
548
549 AttToConnMap::Accessor acc(&m_connections);
550 if (acc.getFirst())
551 {
552 do
553 {
554 Connection* conn = acc.current().m_conn;
555 Connection::deleteConnection(tdbb, conn);
556 } while (acc.getNext());
557 }
558
559 m_connections.clear();
560}
561
562void Provider::cancelConnections()
563{

Callers 1

~ManagerMethod · 0.80

Calls 5

getDatabaseMethod · 0.80
getFirstMethod · 0.45
currentMethod · 0.45
getNextMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected