mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
Maint: loopstate package used in Openvpn state
This commit is contained in:
@@ -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