| 60 | { |
| 61 | public: |
| 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 | { |
nothing calls this directly
no test coverage detected