MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / unlock

Method unlock

source/core/StarLockFile_unix.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void LockFile::unlock() {
82 if (m_handle) {
83 int fd = *(int*)m_handle.get();
84 unlink(m_filename.utf8Ptr());
85 close(fd);
86 m_handle.reset();
87 }
88}
89
90bool LockFile::isLocked() const {
91 return (bool)m_handle;

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
utf8PtrMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected