rwmutex

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 RWMutex

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

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

func New

func New(unsafe ...bool) *RWMutex

func (*RWMutex) IsSafe

func (mu *RWMutex) IsSafe() bool

func (*RWMutex) Lock

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

func (*RWMutex) RLock

func (mu *RWMutex) RLock(force ...bool)

func (*RWMutex) RUnlock

func (mu *RWMutex) RUnlock(force ...bool)

func (*RWMutex) Unlock

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

Jump to

Keyboard shortcuts

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