cqueue

package module
v0.0.0-...-7a8fca7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by go run types_gen.go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LQPointer

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

func NewLQPointer

func NewLQPointer() *LQPointer

func (*LQPointer) Dequeue

func (q *LQPointer) Dequeue() (unsafe.Pointer, bool)

func (*LQPointer) Enqueue

func (q *LQPointer) Enqueue(value unsafe.Pointer) bool

type LQUint64

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

func NewLQUint64

func NewLQUint64() *LQUint64

func (*LQUint64) Dequeue

func (q *LQUint64) Dequeue() (uint64, bool)

func (*LQUint64) Enqueue

func (q *LQUint64) Enqueue(value uint64) bool

type LSCQPointer

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

func NewLSCQPointer

func NewLSCQPointer() *LSCQPointer

func (*LSCQPointer) Dequeue

func (q *LSCQPointer) Dequeue() (data unsafe.Pointer, ok bool)

func (*LSCQPointer) Enqueue

func (q *LSCQPointer) Enqueue(data unsafe.Pointer) bool

func (*LSCQPointer) Len

func (q *LSCQPointer) Len() int

Len returns an *estimated* length of the LSCQ. WARNING: the returned length could be inaccurate even when none of the goroutines use it.

func (*LSCQPointer) Peek

func (q *LSCQPointer) Peek() (data unsafe.Pointer, ok bool)

func (*LSCQPointer) Range

func (q *LSCQPointer) Range(f func(data unsafe.Pointer) bool)

type LSCQUint64

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

func NewLSCQUint64

func NewLSCQUint64() *LSCQUint64

func (*LSCQUint64) Dequeue

func (q *LSCQUint64) Dequeue() (data uint64, ok bool)

func (*LSCQUint64) Enqueue

func (q *LSCQUint64) Enqueue(data uint64) bool

func (*LSCQUint64) Len

func (q *LSCQUint64) Len() int

Len returns an *estimated* length of the LSCQ. WARNING: the returned length could be inaccurate even when none of the goroutines use it.

func (*LSCQUint64) Peek

func (q *LSCQUint64) Peek() (data uint64, ok bool)

func (*LSCQUint64) Range

func (q *LSCQUint64) Range(f func(data uint64) bool)

type MSQPointer

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

func NewMSQPointer

func NewMSQPointer() *MSQPointer

func (*MSQPointer) Dequeue

func (q *MSQPointer) Dequeue() (value unsafe.Pointer, ok bool)

func (*MSQPointer) Enqueue

func (q *MSQPointer) Enqueue(value unsafe.Pointer) bool

type MSQUint64

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

func NewMSQUint64

func NewMSQUint64() *MSQUint64

func (*MSQUint64) Dequeue

func (q *MSQUint64) Dequeue() (value uint64, ok bool)

func (*MSQUint64) Enqueue

func (q *MSQUint64) Enqueue(value uint64) bool

type PoolQueue

type PoolQueue []poolChain

func NewPoolQueue

func NewPoolQueue() PoolQueue

func (PoolQueue) Dequeue

func (q PoolQueue) Dequeue() (interface{}, bool)

func (PoolQueue) Enqueue

func (q PoolQueue) Enqueue(data interface{}) bool

type PoolQueueUint64

type PoolQueueUint64 PoolQueue

func NewPoolQueueUint64

func NewPoolQueueUint64() PoolQueueUint64

func (PoolQueueUint64) Dequeue

func (q PoolQueueUint64) Dequeue() (uint64, bool)

func (PoolQueueUint64) Enqueue

func (q PoolQueueUint64) Enqueue(data uint64) bool

type SCQPointer

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

func NewSCQPointer

func NewSCQPointer() *SCQPointer

func (*SCQPointer) Dequeue

func (q *SCQPointer) Dequeue() (data unsafe.Pointer, ok bool)

func (*SCQPointer) Enqueue

func (q *SCQPointer) Enqueue(data unsafe.Pointer) bool

func (*SCQPointer) Len

func (q *SCQPointer) Len() int

Len returns an *estimated* length of the SCQ. WARNING: the returned length could be inaccurate even when only one goroutine uses it.

func (*SCQPointer) Peek

func (q *SCQPointer) Peek() (data unsafe.Pointer, ok bool)

Peek !! Experimental API !!

func (*SCQPointer) Range

func (q *SCQPointer) Range(f func(data unsafe.Pointer) bool)

Range !! Experimental API !!

type SCQUint64

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

func NewSCQUint64

func NewSCQUint64() *SCQUint64

func (*SCQUint64) Dequeue

func (q *SCQUint64) Dequeue() (data uint64, ok bool)

func (*SCQUint64) Enqueue

func (q *SCQUint64) Enqueue(data uint64) bool

func (*SCQUint64) Len

func (q *SCQUint64) Len() int

Len returns an *estimated* length of the SCQ. WARNING: the returned length could be inaccurate even when only one goroutine uses it.

func (*SCQUint64) Peek

func (q *SCQUint64) Peek() (data uint64, ok bool)

Peek !! Experimental API !!

func (*SCQUint64) Range

func (q *SCQUint64) Range(f func(data uint64) bool)

Range !! Experimental API !!

Jump to

Keyboard shortcuts

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