MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / 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 for (const auto&i : *lockstack)
141 if (i.first == cs) return;
142 fprintf(stderr, "Assertion failed: lock %s not held in %s:%i; locks held:\n%s",
143 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