Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCapacity = 1024
DefaultCapacity defines default local store slots capacity.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStore ¶
LocalStore defines rw mutex lock; limited slots capacity; allocation free; goroutine local storage implementation. It exposes store directly to avoid stack store copies.
func (*LocalStore) Del ¶
func (ls *LocalStore) Del()
Del removes local goroutine storage value frees single capacity slot.
func (*LocalStore) RLock ¶ added in v0.8.0
func (ls *LocalStore) RLock() int64
RLock defines manual read locking operation.
func (*LocalStore) RUnlock ¶ added in v0.8.0
func (ls *LocalStore) RUnlock()
RUnlock defines manual read unlocking operation.
func (*LocalStore) Set ¶
func (ls *LocalStore) Set(v uintptr)
Set sets local goroutine storage value if there any free capacity slot avaliable.