MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / AssertLockHeldInternal

Function AssertLockHeldInternal

src/sync.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs)
139{
140 BOOST_FOREACH (const PAIRTYPE(void*, CLockLocation) & i, *lockstack)
141 if (i.first == cs)
142 return;
143 fprintf(stderr, "Assertion failed: lock %s not held in %s:%i; locks held:\n%s", pszName, pszFile, nLine, LocksHeld().c_str());
144 abort();
145}
146
147#endif /* DEBUG_LOCKORDER */

Callers

nothing calls this directly

Calls 1

LocksHeldFunction · 0.85

Tested by

no test coverage detected