| 136 | } |
| 137 | |
| 138 | void 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 */ |
nothing calls this directly
no test coverage detected