lock

package
v1.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State added in v1.1.11

type State struct {
	// contains filtered or unexported fields
}

State represents a lockable state

func (*State) Acquire added in v1.1.11

func (s *State) Acquire()

Acquire acquires the write lock

func (*State) Lock added in v1.1.11

func (s *State) Lock() sync.Locker

Lock returns the underlying lock

func (*State) RAcquire added in v1.1.11

func (s *State) RAcquire()

RAcquire acquires the read lock

func (*State) RLock added in v1.1.11

func (s *State) RLock() sync.Locker

RLock returns the underlying read lock

func (*State) RRelease added in v1.1.11

func (s *State) RRelease()

RRelease releases the read lock

func (*State) Release added in v1.1.11

func (s *State) Release()

Release releases the write lock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL