Documentation ¶
Index ¶
- type ChanQueue
- type Element
- type IDeque
- type IQueue
- type ListQueue
- type ListQueueLock
- type ListQueueLockFree
- type RingQueue
- type RingQueueLock
- func (r *RingQueueLock) Dequeue() (any, bool)
- func (r *RingQueueLock) Enqueue(v any) bool
- func (r *RingQueueLock) IsEmpty() bool
- func (r *RingQueueLock) PopFront() (any, bool)
- func (r *RingQueueLock) PushBack(v any) bool
- func (r *RingQueueLock) PushFront(v any) bool
- func (r *RingQueueLock) ResetCap(cap uint32) (uint32, error)
- type RingQueueLockFree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IQueue ¶
func NewChanQueue ¶
type ListQueue ¶
type ListQueue struct {
// contains filtered or unexported fields
}
func NewListQueue ¶
func NewListQueue() *ListQueue
type ListQueueLock ¶
type ListQueueLock struct {
// contains filtered or unexported fields
}
func NewListQueueLock ¶
func NewListQueueLock() *ListQueueLock
func (*ListQueueLock) Dequeue ¶
func (l *ListQueueLock) Dequeue() (any, bool)
func (*ListQueueLock) Enqueue ¶
func (l *ListQueueLock) Enqueue(v any) bool
func (*ListQueueLock) IsEmpty ¶
func (l *ListQueueLock) IsEmpty() bool
func (*ListQueueLock) PopFront ¶
func (l *ListQueueLock) PopFront() (any, bool)
func (*ListQueueLock) PushBack ¶
func (l *ListQueueLock) PushBack(v any) bool
func (*ListQueueLock) PushFront ¶
func (l *ListQueueLock) PushFront(v any) bool
type ListQueueLockFree ¶
type ListQueueLockFree struct {
// contains filtered or unexported fields
}
func NewListQueueLockFree ¶
func NewListQueueLockFree() *ListQueueLockFree
func (*ListQueueLockFree) Dequeue ¶
func (l *ListQueueLockFree) Dequeue() (any, bool)
func (*ListQueueLockFree) Enqueue ¶
func (l *ListQueueLockFree) Enqueue(v any) bool
func (*ListQueueLockFree) IsEmpty ¶
func (l *ListQueueLockFree) IsEmpty() bool
func (*ListQueueLockFree) PopFront ¶
func (l *ListQueueLockFree) PopFront() (any, bool)
func (*ListQueueLockFree) PushBack ¶
func (l *ListQueueLockFree) PushBack(v any) bool
func (*ListQueueLockFree) PushFront ¶
func (l *ListQueueLockFree) PushFront(v any) bool
type RingQueue ¶
type RingQueue struct {
// contains filtered or unexported fields
}
func NewRingQueue ¶
NewRingQueue 由于内部运算需要,所以queue内部会自动扩容到2^n次方容量
type RingQueueLock ¶
type RingQueueLock struct {
// contains filtered or unexported fields
}
func NewRingQueueLock ¶
func NewRingQueueLock(cap uint32) *RingQueueLock
NewRingQueueLock 由于内部运算需要,所以queue内部会自动扩容到2^n次方容量
func (*RingQueueLock) Dequeue ¶
func (r *RingQueueLock) Dequeue() (any, bool)
func (*RingQueueLock) Enqueue ¶
func (r *RingQueueLock) Enqueue(v any) bool
func (*RingQueueLock) IsEmpty ¶
func (r *RingQueueLock) IsEmpty() bool
func (*RingQueueLock) PopFront ¶
func (r *RingQueueLock) PopFront() (any, bool)
func (*RingQueueLock) PushBack ¶
func (r *RingQueueLock) PushBack(v any) bool
func (*RingQueueLock) PushFront ¶
func (r *RingQueueLock) PushFront(v any) bool
type RingQueueLockFree ¶
type RingQueueLockFree struct {
// contains filtered or unexported fields
}
func NewRingQueueLockFree ¶
func NewRingQueueLockFree(cap uint32) *RingQueueLockFree
NewRingQueueLockFree 由于内部运算需要,所以queue内部会自动扩容到2^n次方容量
func (*RingQueueLockFree) Dequeue ¶
func (r *RingQueueLockFree) Dequeue() (any, bool)
func (*RingQueueLockFree) Enqueue ¶
func (r *RingQueueLockFree) Enqueue(v any) bool
func (*RingQueueLockFree) IsEmpty ¶
func (r *RingQueueLockFree) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.