1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-05-26 14:12:42 +08:00
parent a5cc6eb04c
commit a31e054a70
3 changed files with 6 additions and 18 deletions

View File

@ -15,11 +15,6 @@ type RWLocker interface {
TryRLock() bool
}
type locker struct {
*sync.Mutex
func NewLocker() *sync.Mutex {
return &sync.Mutex{}
}
func NewLocker() *locker {
return &locker{Mutex: &sync.Mutex{}}
}