void Threading::pxThread::FrankenMutex( Mutex& mutex ) { if( mutex.RecreateIfLocked() ) { // Our lock is bupkis, which means the previous thread probably deadlocked. // Let's create a new mutex lock to replace it. pxThreadLog.Error( GetName(), L"Possible deadlock detected on restarted mutex!" ); } }