gf: github.com/gogf/gf/g/internal/rwmutex Index | Files

package rwmutex

import "github.com/gogf/gf/g/internal/rwmutex"

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

Index

Package Files

rwmutex.go

type RWMutex Uses

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

RWMutex is a sync.RWMutex with a switch of concurrent safe feature.

func New Uses

func New(unsafe ...bool) *RWMutex

func (*RWMutex) IsSafe Uses

func (mu *RWMutex) IsSafe() bool

func (*RWMutex) Lock Uses

func (mu *RWMutex) Lock()

func (*RWMutex) RLock Uses

func (mu *RWMutex) RLock()

func (*RWMutex) RUnlock Uses

func (mu *RWMutex) RUnlock()

func (*RWMutex) Unlock Uses

func (mu *RWMutex) Unlock()

Package rwmutex imports 1 packages (graph) and is imported by 14 packages. Updated 2019-06-21. Refresh now. Tools for package owners.