locker

package
v0.0.0-...-d427792 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	I = iota
	H
	C
	F
	E
)
View Source
const (
	FreeMultiples = 10
	ColdMultiples = 200
	MinCacheSize  = 2000
)
View Source
const (
	Cycle = 30
)

Variables

This section is empty.

Functions

func New

func New() *table

Types

type Locker

type Locker interface {
	Lock()
	Unlock()
	RLock()
	RUnlock()
}

type Table

type Table interface {
	Run()
	Stop()
	Get(uint64) Locker
}

Jump to

Keyboard shortcuts

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