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

@ -2,12 +2,8 @@ package locker
import "sync"
var _ RWLocker = &rwLocker{}
var _ RWLocker = &sync.RWMutex{}
type rwLocker struct {
*sync.RWMutex
}
func NewRWLocker() *rwLocker {
return &rwLocker{RWMutex: &sync.RWMutex{}}
func NewRWLocker() *sync.RWMutex {
return &sync.RWMutex{}
}