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

package mutex

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

Package mutex provides switch of concurrent safe feature for sync.Mutex.

Index

Package Files

mutex.go

type Mutex Uses

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

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

func New Uses

func New(unsafe ...bool) *Mutex

func (*Mutex) IsSafe Uses

func (mu *Mutex) IsSafe() bool

func (*Mutex) Lock Uses

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

func (*Mutex) Unlock Uses

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

Package mutex imports 1 packages (graph). Updated 2019-07-18. Refresh now. Tools for package owners.