mutexKit

package
v3.0.91 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: Apache-2.0 Imports: 1 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 {
	gmutex.Mutex
}

Mutex 互斥锁.

PS: 也可以让 结构体 继承 Mutex.

func NewMutex

func NewMutex() *Mutex

NewMutex 互斥锁.

type RWMutex

type RWMutex struct {
	gmutex.RWMutex
}

RWMutex 读写锁.

PS: 也可以让 结构体 继承 RWMutex.

func NewRWMutex

func NewRWMutex() *RWMutex

NewRWMutex 读写锁.

Jump to

Keyboard shortcuts

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