gf: Index | Files

package mutex

import ""

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


Package Files


type Mutex Uses

type Mutex struct {
    // 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.