| 377 | } |
| 378 | |
| 379 | void Provider::bindConnection(thread_db* tdbb, Connection* conn) |
| 380 | { |
| 381 | Attachment* attachment = tdbb->getAttachment(); |
| 382 | MutexLockGuard guard(m_mutex, FB_FUNCTION); |
| 383 | |
| 384 | Attachment* oldAtt = conn->getBoundAtt(); |
| 385 | fb_assert(oldAtt == NULL); |
| 386 | if (m_connections.locate(AttToConn(oldAtt, conn))) |
| 387 | m_connections.fastRemove(); |
| 388 | |
| 389 | conn->setBoundAtt(attachment); |
| 390 | bool ret = m_connections.add(AttToConn(attachment, conn)); |
| 391 | fb_assert(ret); |
| 392 | } |
| 393 | |
| 394 | Connection* Provider::getBoundConnection(Jrd::thread_db* tdbb, |
| 395 | const Firebird::PathName& dbName, Firebird::ClumpletReader& dpb, |
no test coverage detected