Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
void 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
90
bool LockFile::isLocked() const {
91
return (bool)m_handle;
Callers
nothing calls this directly
Calls
3
get
Method · 0.45
utf8Ptr
Method · 0.45
reset
Method · 0.45
Tested by
no test coverage detected