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

Function AssertLockNotHeldInternal

src/sync.cpp:285–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284template <typename MutexType>
285void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs)
286{
287 if (!LockHeld(cs)) return;
288 tfm::format(std::cerr, "Assertion failed: lock %s held in %s:%i; locks held:\n%s", pszName, pszFile, nLine, LocksHeld());
289 abort();
290}
291template void AssertLockNotHeldInternal(const char*, const char*, int, Mutex*);
292template void AssertLockNotHeldInternal(const char*, const char*, int, RecursiveMutex*);
293

Callers

nothing calls this directly

Calls 3

LockHeldFunction · 0.85
LocksHeldFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected