nazasync

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrObtainGoroutineId = errors.New("nazasync: obtain current goroutine id failed")

Functions

func CurGoroutineId added in v0.19.0

func CurGoroutineId() (int64, error)

Types

type Mutex

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

func (*Mutex) Lock

func (m *Mutex) Lock()

func (*Mutex) Unlock

func (m *Mutex) Unlock()

type MutexManager added in v0.19.1

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

注意,key是由mutex唯一ID加上协程ID组合而成

func NewMutexManager added in v0.19.1

func NewMutexManager() *MutexManager

Jump to

Keyboard shortcuts

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