stack

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFreeStack added in v0.3.0

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

LockFreeStack implements lock-free freelist based stack.

func NewLockFreeStack added in v0.3.0

func NewLockFreeStack() *LockFreeStack

NewLockFreeStack creates a new lock-free queue.

func (*LockFreeStack) Pop added in v0.3.0

func (s *LockFreeStack) Pop() interface{}

Pop pops value from the top of the stack.

func (*LockFreeStack) Push added in v0.3.0

func (s *LockFreeStack) Push(v interface{})

Push pushes a value on top of the stack.

Jump to

Keyboard shortcuts

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