mutex

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 3 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Mutex) Lock

func (m *Mutex) Lock()

func (*Mutex) TryLock

func (m *Mutex) TryLock() bool

func (*Mutex) Unlock

func (m *Mutex) Unlock()

type RWMutex

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

func (*RWMutex) Lock

func (m *RWMutex) Lock()

func (*RWMutex) RLock

func (m *RWMutex) RLock()

func (*RWMutex) RUnlock

func (m *RWMutex) RUnlock()

func (*RWMutex) TryLock

func (m *RWMutex) TryLock() bool

func (*RWMutex) TryRLock

func (m *RWMutex) TryRLock() bool

func (*RWMutex) Unlock

func (m *RWMutex) Unlock()

type TMutex

type TMutex struct {
	tmutex.Mutex
	// contains filtered or unexported fields
}

func NewTMutex

func NewTMutex() *TMutex

func (*TMutex) Lock

func (m *TMutex) Lock()

func (*TMutex) TryLock

func (m *TMutex) TryLock() bool

func (*TMutex) Unlock

func (m *TMutex) Unlock()

Jump to

Keyboard shortcuts

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