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

This commit is contained in:
Audrius Butkevicius committed 2016-10-30 00:17:25 +01:00
1 parent 0296c23685
commit 7fba8cf759
3 files changed
+28 -8

No files matched your search

+4
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
}