Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FiFo ¶
type FiFo[T any] struct { // contains filtered or unexported fields }
FiFo implements a first-in-first-out queue backed by the shared queue base.
func (*FiFo) GetLength ¶
func (q *FiFo) GetLength() uint64
GetLength returns the current length guarded by the mutex.
func (*FiFo) GetLength2 ¶ added in v0.9.1
func (q *FiFo) GetLength2() uint64
GetLength2 exposes the raw length value without locking.
type LiFo ¶
type LiFo[T any] struct { // contains filtered or unexported fields }
LiFo implements a last-in-first-out stack behaviour.
func (*LiFo) GetLength ¶
func (q *LiFo) GetLength() uint64
GetLength returns the current length guarded by the mutex.
func (*LiFo) GetLength2 ¶ added in v0.9.1
func (q *LiFo) GetLength2() uint64
GetLength2 exposes the raw length value without locking.
Source Files
¶
- fifo.go
- lifo.go
- queue.go
Click to show internal directories.
Click to hide internal directories.