github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/debug/badmutex.go (about)

     1  package debug
     2  
     3  // BadMutex is only used to test deadlocks and shouldn't be used in release code.
     4  type BadMutex struct{}
     5  
     6  // Lock is a fake mutex lock used to check deadlocks
     7  func (bm *BadMutex) Lock() {}
     8  
     9  // Unlock is a fake mutex Unlock used to check deadlocks
    10  func (bm *BadMutex) Unlock() {}