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

Method FileExtendLockGuard

src/jrd/os/win32/winnt.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60{
61public:
62 FileExtendLockGuard(Firebird::RWLock* lock, bool exclusive) :
63 m_lock(lock), m_exclusive(exclusive)
64 {
65 if (m_exclusive) {
66 fb_assert(m_lock);
67 }
68 if (m_lock)
69 {
70 if (m_exclusive)
71 m_lock->beginWrite(FB_FUNCTION);
72 else
73 m_lock->beginRead(FB_FUNCTION);
74 }
75 }
76
77 ~FileExtendLockGuard()
78 {

Callers

nothing calls this directly

Calls 2

beginWriteMethod · 0.80
beginReadMethod · 0.80

Tested by

no test coverage detected