functions

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 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