MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / tryEnter

Function tryEnter

src/common/classes/locks.h:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 bool tryEnter(const char* aReason)
102 {
103 const bool ret = (TryEnterCriticalSection(&spinlock) == TRUE);
104 if (ret)
105 {
106 reason(aReason);
107#ifdef DEV_BUILD
108 lockCount++;
109#endif
110 }
111 return ret;
112 }
113
114 void leave()
115 {

Callers 4

tryEnterMethod · 0.70
enterMethod · 0.70
lockedFunction · 0.70
lockedMethod · 0.70

Calls 1

TryEnterCriticalSectionFunction · 0.85

Tested by

no test coverage detected