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

Method FileLockHolder

src/common/isc_sync.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 {
170 public:
171 explicit FileLockHolder(FileLock* l)
172 : lock(l)
173 {
174 if (!lock)
175 return;
176 LocalStatus ls;
177 CheckStatusWrapper status(&ls);
178 if (!lock->setlock(&status, FileLock::FLM_EXCLUSIVE))
179 status_exception::raise(&status);
180 }
181
182 ~FileLockHolder()
183 {

Callers

nothing calls this directly

Calls 2

raiseFunction · 0.85
setlockMethod · 0.80

Tested by

no test coverage detected