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

Method tryEnter

src/common/classes/XThreadMutex.h:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 bool tryEnter(const char* aReason)
63 {
64 const bool ret = Semaphore::tryEnter();
65 if (ret)
66 {
67 fb_assert(!locked);
68#ifdef DEV_BUILD
69 locked = true;
70#endif
71 reason(aReason);
72 }
73 return ret;
74 }
75
76 void leave()
77 {

Callers

nothing calls this directly

Calls 1

tryEnterFunction · 0.70

Tested by

no test coverage detected