mutex

package
v0.5.0-beta2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

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

func (*Mutex) Hold

func (mx *Mutex) Hold(ctx context.Context) bool

func (*Mutex) HoldForRead

func (mx *Mutex) HoldForRead(ctx context.Context) bool

func (*Mutex) Release

func (mx *Mutex) Release()

func (*Mutex) ReleaseForRead

func (mx *Mutex) ReleaseForRead()

func (*Mutex) TryHold

func (mx *Mutex) TryHold() bool

func (*Mutex) TryHoldForRead

func (mx *Mutex) TryHoldForRead() bool

func (*Mutex) Wait

func (mx *Mutex) Wait(ctx context.Context) bool

Jump to

Keyboard shortcuts

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