zbgls

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginGO

func BeginGO() (endgort func())

BeginGO 在每一个线程头尾执行的,形如:defer BeginGO()(), 以完成go routine本地存储的初始化和退出资源释放。

func GO

func GO(gofun func())

GO 程序中代替go 语句的函数,完成go程本地存储相关的资源初始化和资源释放

func NewGrlsIdx1

func NewGrlsIdx1(grls *GrlsIdx) (delrs_func func())

Types

type GrlsArmor

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

GrlsArmor 对需求恢复routine本地存储前一个值有要求的地方可以使用

func NewGrlsArmor

func NewGrlsArmor(tlsidx GrlsIdx) *GrlsArmor

func (*GrlsArmor) GetAny

func (this *GrlsArmor) GetAny() any

func (*GrlsArmor) GetInt

func (this *GrlsArmor) GetInt() int64

func (*GrlsArmor) GetPrevAny

func (this *GrlsArmor) GetPrevAny() any

func (*GrlsArmor) GetPrevInt

func (this *GrlsArmor) GetPrevInt() int64

func (*GrlsArmor) IsNil

func (this *GrlsArmor) IsNil() bool

func (*GrlsArmor) SetAny

func (this *GrlsArmor) SetAny(pval any) (unset func() bool)

func (*GrlsArmor) SetInt

func (this *GrlsArmor) SetInt(pval int64) (unset func() bool)

func (*GrlsArmor) UnSet

func (this *GrlsArmor) UnSet() bool

type GrlsIdx

type GrlsIdx interface {
	IsNil() bool

	GetAny() any
	GetInt() int64
	SetAny(ptr any) (prev any)
	SetInt(val int64) (prev int64)
}

GrlsIdx go routine local store索引

func NewGrlsIdx2

func NewGrlsIdx2(delrs_func *func()) (grls GrlsIdx)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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