lib/sync: Print all lockers, add holder to RWMutex

This commit is contained in:
Audrius Butkevicius
2016-10-30 00:14:38 +01:00
parent 0296c23685
commit 7fba8cf759
3 changed files with 28 additions and 8 deletions

View File

@@ -130,6 +130,10 @@ func (m *loggedRWMutex) RUnlock() {
m.RWMutex.RUnlock()
}
func (m *loggedRWMutex) Holder() (string, int) {
return m.lockedAt, m.goid
}
type loggedWaitGroup struct {
sync.WaitGroup
}