functions

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOMAXPROCS

func GOMAXPROCS(n ...int)

GOMAXPROCS 设置CPU核数

func GetPages

func GetPages(pageSize, count int) (pages int)

GetPages 计算页数

func Timestamp

func Timestamp() (timestamp int64)

Timestamp 毫秒时间戳

Types

type SpinLock

type SpinLock uint32

SpinLock 自旋锁对象定义

func (*SpinLock) Lock

func (sl *SpinLock) Lock()

Lock 加锁

todo: 未加验证

func (*SpinLock) UnLock

func (sl *SpinLock) UnLock()

UnLock 解锁

Jump to

Keyboard shortcuts

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