sync

package
v0.0.1-20220723-0001 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

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

func New

func New() *Mutex

New -> It's not mandatory to use, because when defining the variable with type Mutex, it's automatically defined with zero values!

func (*Mutex) IsLocked

func (l *Mutex) IsLocked() bool

func (*Mutex) Lock

func (l *Mutex) Lock()

func (*Mutex) TryLock

func (l *Mutex) TryLock() bool

func (*Mutex) Unlock

func (l *Mutex) Unlock()

type RWMutex

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

func NewRW

func NewRW() *RWMutex

NewRW -> It's not mandatory to use, because when defining the variable with type Mutex, it's automatically defined with zero values!

func (*RWMutex) IsLocked

func (l *RWMutex) IsLocked() bool

func (*RWMutex) IsReadLocked

func (l *RWMutex) IsReadLocked() bool

func (*RWMutex) IsWriteLocked

func (l *RWMutex) IsWriteLocked() bool

func (*RWMutex) Lock

func (l *RWMutex) Lock()

func (*RWMutex) RLock

func (l *RWMutex) RLock()

func (*RWMutex) RUnlock

func (l *RWMutex) RUnlock()

func (*RWMutex) TryLock

func (l *RWMutex) TryLock() bool

func (*RWMutex) TryReadLock

func (l *RWMutex) TryReadLock() bool

func (*RWMutex) Unlock

func (l *RWMutex) Unlock()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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