mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
空锁
This commit is contained in:
@ -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{}}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user