MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / tryLock

Method tryLock

src/Base/FileLock.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40FileLock::~FileLock() = default;
41
42bool FileLock::tryLock(int /*timeoutMs*/)
43{
44 _locked = true;
45 return true;
46}
47
48bool FileLock::lock()
49{

Callers 4

LoadDocumentMethod · 0.80
SaveDocumentMethod · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 7

maxFunction · 0.85
minFunction · 0.85
tryLockFdFunction · 0.85
closeFunction · 0.85
nowFunction · 0.50
openFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected