Maint: loopstate package used in Openvpn state
This commit is contained in:
9
internal/loopstate/lock.go
Normal file
9
internal/loopstate/lock.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package loopstate
|
||||
|
||||
type Locker interface {
|
||||
Lock()
|
||||
Unlock()
|
||||
}
|
||||
|
||||
func (s *State) Lock() { s.loopMu.Lock() }
|
||||
func (s *State) Unlock() { s.loopMu.Unlock() }
|
||||
Reference in New Issue
Block a user