lock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RwLock

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

RwLock is a read-write mutex.

func NewRwLock

func NewRwLock() *RwLock

NewRwLock creates a new read-write lock.

func (*RwLock) Run

func (l *RwLock) Run(fn func())

Run runs the given function in a read-write lock.

Jump to

Keyboard shortcuts

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