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

Method ensureLockIsCreated

src/dsql/DsqlStatementCache.cpp:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void DsqlStatementCache::ensureLockIsCreated(thread_db* tdbb)
314{
315 if (!lock)
316 {
317 lock = FB_NEW_RPT(getPool(), 0) Lock(tdbb, 0, LCK_dsql_statement_cache, this, blockingAst);
318 LCK_lock(tdbb, lock, LCK_SR, LCK_WAIT); // never fails
319 }
320}
321
322#ifdef DSQL_STATEMENT_CACHE_DEBUG
323void DsqlStatementCache::dump()

Callers

nothing calls this directly

Calls 2

LCK_lockFunction · 0.85
LockClass · 0.70

Tested by

no test coverage detected