mutex

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: 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 Mutex

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

Mutex的封装,支持对并发安全开启/关闭的控制。

func New

func New(unsafe ...bool) *Mutex

func (*Mutex) IsSafe

func (mu *Mutex) IsSafe() bool

func (*Mutex) Lock

func (mu *Mutex) Lock(force ...bool)

func (*Mutex) Unlock

func (mu *Mutex) Unlock(force ...bool)

Jump to

Keyboard shortcuts

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