| 259 | } |
| 260 | |
| 261 | static bool LockHeld(void* mutex) |
| 262 | { |
| 263 | LockData& lockdata = GetLockData(); |
| 264 | std::lock_guard<std::mutex> lock(lockdata.dd_mutex); |
| 265 | |
| 266 | const LockStack& lock_stack = lockdata.m_lock_stacks[std::this_thread::get_id()]; |
| 267 | for (const LockStackItem& i : lock_stack) { |
| 268 | if (i.first == mutex) return true; |
| 269 | } |
| 270 | |
| 271 | return false; |
| 272 | } |
| 273 | |
| 274 | template <typename MutexType> |
| 275 | void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) |
no outgoing calls
no test coverage detected