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

Method UnlockFile

src/leveldb/util/env_posix.cc:665–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663 }
664
665 Status UnlockFile(FileLock* lock) override {
666 PosixFileLock* posix_file_lock = static_cast<PosixFileLock*>(lock);
667 if (LockOrUnlock(posix_file_lock->fd(), false) == -1) {
668 return PosixError("unlock " + posix_file_lock->filename(), errno);
669 }
670 locks_.Remove(posix_file_lock->filename());
671 ::close(posix_file_lock->fd());
672 delete posix_file_lock;
673 return Status::OK();
674 }
675
676 void Schedule(void (*background_work_function)(void* background_work_arg),
677 void* background_work_arg) override;

Callers 4

UnlockFileFunction · 0.45
TESTFunction · 0.45
~DBImplMethod · 0.45
DestroyDBFunction · 0.45

Calls 6

PosixErrorFunction · 0.85
OKFunction · 0.85
fdMethod · 0.80
filenameMethod · 0.80
RemoveMethod · 0.80
LockOrUnlockFunction · 0.70

Tested by 1

TESTFunction · 0.36