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

Method LocalAllocGuard

src/jrd/nbak.h:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 {
284 public:
285 explicit LocalAllocGuard(BackupManager* bm)
286 : m_bm(bm)
287 {
288 //Database::Checkout cout(m_bm->database);
289
290 if (Exclusive)
291 m_bm->localAllocLock.beginWrite("BackupManager::LocalAllocGuard");
292 else
293 m_bm->localAllocLock.beginRead("BackupManager::LocalAllocGuard");
294 }
295
296 ~LocalAllocGuard()
297 {

Callers

nothing calls this directly

Calls 2

beginWriteMethod · 0.80
beginReadMethod · 0.80

Tested by

no test coverage detected