add sync.Cond

This commit is contained in:
Jaden Weiss
2020-01-27 17:46:37 -05:00
committed by Ayke
parent 171d0fe123
commit ccd79ee289
2 changed files with 85 additions and 0 deletions
+5
View File
@@ -69,3 +69,8 @@ func (rw *RWMutex) RUnlock() {
rw.m.Unlock()
}
}
type Locker interface {
Lock()
Unlock()
}