lock
Package lock
import "github.com/luxfi/node/utils/lock"Types
Cond
Cond implements a condition variable. Typically [sync.Cond] should be preferred. However, this implementation supports cancellable waits.
func NewCond(l sync.Locker) *Condfunc (c *Cond) Broadcast()func (c *Cond) Signal()func (c *Cond) Wait(ctx context.Context) errorState
State represents a lockable state
func (s *State) Acquire()func (s *State) Lock() sync.Lockerfunc (s *State) RAcquire()func (s *State) RLock() sync.Lockerfunc (s *State) RRelease()func (s *State) Release()