functions

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccelerationNotSupported = errors.New("acceleration not supported on this platform")
)

Functions

func GetPages

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

GetPages 计算页数

func Optimize added in v0.7.3

func Optimize()

Optimize 系统优化系列

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