rwmutex

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package rwmutex provides switch of concurrent safe feature for sync.RWMutex.

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 is a sync.RWMutex with a switch of concurrent safe feature.

func New

func New(unsafe ...bool) *RWMutex

func (*RWMutex) IsSafe

func (mu *RWMutex) IsSafe() bool

func (*RWMutex) Lock

func (mu *RWMutex) Lock()

func (*RWMutex) RLock

func (mu *RWMutex) RLock()

func (*RWMutex) RUnlock

func (mu *RWMutex) RUnlock()

func (*RWMutex) Unlock

func (mu *RWMutex) Unlock()

Jump to

Keyboard shortcuts

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