MCPcopy Create free account
hub / github.com/ElementsProject/elements / UnlockFile

Method UnlockFile

src/leveldb/util/env_windows.cc:610–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608 }
609
610 Status UnlockFile(FileLock* lock) override {
611 WindowsFileLock* windows_file_lock =
612 reinterpret_cast<WindowsFileLock*>(lock);
613 if (!LockOrUnlock(windows_file_lock->handle().get(), false)) {
614 return WindowsError("unlock " + windows_file_lock->filename(),
615 ::GetLastError());
616 }
617 delete windows_file_lock;
618 return Status::OK();
619 }
620
621 void Schedule(void (*background_work_function)(void* background_work_arg),
622 void* background_work_arg) override;

Callers

nothing calls this directly

Calls 6

WindowsErrorFunction · 0.85
OKFunction · 0.85
filenameMethod · 0.80
LockOrUnlockFunction · 0.70
getMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected