MCPcopy Create free account
hub / github.com/ElementsProject/elements / AssertLockHeldInternal

Function AssertLockHeldInternal

src/sync.cpp:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274template <typename MutexType>
275void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs)
276{
277 if (LockHeld(cs)) return;
278 tfm::format(std::cerr, "Assertion failed: lock %s not held in %s:%i; locks held:\n%s", pszName, pszFile, nLine, LocksHeld());
279 abort();
280}
281template void AssertLockHeldInternal(const char*, const char*, int, Mutex*);
282template void AssertLockHeldInternal(const char*, const char*, int, RecursiveMutex*);
283

Callers

nothing calls this directly

Calls 3

LockHeldFunction · 0.85
LocksHeldFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected