list_head

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package loncha/list_head is like a kernel's LIST_HEAD list_head is used by loncha/gen/containers_list

Index

Constants

This section is empty.

Variables

View Source
var (
	MODE_CONCURRENT      bool = false
	PANIC_NEXT_IS_MARKED bool = false
)

Functions

func ContainOf

func ContainOf(head, elm *ListHead) bool

func GetConcurrentMode

func GetConcurrentMode() bool

Types

type Cursor

type Cursor struct {
	Pos *ListHead
}

func (*Cursor) Next

func (cur *Cursor) Next() bool

type ListHead

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

func (*ListHead) Add

func (head *ListHead) Add(new *ListHead)

func (*ListHead) Back

func (l *ListHead) Back() (head *ListHead)

func (*ListHead) Cursor

func (l *ListHead) Cursor() Cursor

func (*ListHead) Delete

func (l *ListHead) Delete() (result *ListHead)

func (*ListHead) DeleteMarked

func (list *ListHead) DeleteMarked()

func (*ListHead) DeleteWithCas

func (l *ListHead) DeleteWithCas(prev *ListHead) (err error)

func (*ListHead) DirectNext

func (head *ListHead) DirectNext() *ListHead

func (*ListHead) DumpAll

func (head *ListHead) DumpAll() string

func (*ListHead) DumpAllWithMark

func (head *ListHead) DumpAllWithMark() string

func (*ListHead) Empty

func (l *ListHead) Empty() bool

func (*ListHead) Front

func (l *ListHead) Front() (head *ListHead)

func (*ListHead) Init

func (head *ListHead) Init()

func (*ListHead) IsFirst

func (l *ListHead) IsFirst() bool

func (*ListHead) IsLast

func (l *ListHead) IsLast() bool

func (*ListHead) Len

func (l *ListHead) Len() (cnt int)

func (*ListHead) MarkForDelete

func (l *ListHead) MarkForDelete() (err error)

func (*ListHead) Next

func (head *ListHead) Next() (nextElement *ListHead)

func (*ListHead) Next0

func (head *ListHead) Next0() (next *ListHead)

func (*ListHead) Next1

func (head *ListHead) Next1() (nextElement *ListHead)

func (*ListHead) P

func (l *ListHead) P() string

func (*ListHead) Pp

func (l *ListHead) Pp() string

func (*ListHead) Prev

func (head *ListHead) Prev() *ListHead

func (*ListHead) PtrNext

func (head *ListHead) PtrNext() **ListHead

Jump to

Keyboard shortcuts

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