mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
16 lines
224 B
Go
16 lines
224 B
Go
package locker
|
|
|
|
import "sync"
|
|
|
|
var _ sync.Locker = &emptyLocker{}
|
|
|
|
type emptyLocker struct{}
|
|
|
|
func NewEmptyLocker() *emptyLocker {
|
|
return &emptyLocker{}
|
|
}
|
|
|
|
func (l *emptyLocker) Lock() {}
|
|
|
|
func (l *emptyLocker) Unlock() {}
|