pcache

package
v0.0.0-...-459568a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPage

type BlockPage struct {
	Ptr *byte
	// contains filtered or unexported fields
}

func InitBlockPage

func InitBlockPage(ptr *byte) *BlockPage

Init block memory

func (*BlockPage) Dirty

func (bp *BlockPage) Dirty() bool

func (*BlockPage) GetData

func (cp *BlockPage) GetData() (page *cType.PageData)

func (*BlockPage) GetPos

func (bp *BlockPage) GetPos() (spaceId, pageNum uint64)

func (*BlockPage) Lock

func (bp *BlockPage) Lock()

func (*BlockPage) PageNo

func (bp *BlockPage) PageNo() uint64

func (*BlockPage) RLock

func (bp *BlockPage) RLock()

func (*BlockPage) SetDirty

func (bp *BlockPage) SetDirty()

func (*BlockPage) SetPageNo

func (bp *BlockPage) SetPageNo(pNo uint64)

func (*BlockPage) SetSpaceId

func (bp *BlockPage) SetSpaceId(spaceId uint64)

func (*BlockPage) Unlock

func (bp *BlockPage) Unlock()

func (*BlockPage) Wp

func (bp *BlockPage) Wp() wp.Wrapper

type BpLockType

type BpLockType uint
const (
	BP_S_LOCK BpLockType = 0
	BP_X_LOCK BpLockType = 1
)

Jump to

Keyboard shortcuts

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