Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNearestPowerOf2 ¶
Types ¶
type BoundedQueue ¶
type BoundedQueue struct {
// contains filtered or unexported fields
}
BoundedQueue is a thread-safe bounded queue.
func NewBoundedQueue ¶
func NewBoundedQueue(cap uint32) *BoundedQueue
NewBoundedQueue returns a new BoundedQueue instance.
func (*BoundedQueue) Cap ¶
func (q *BoundedQueue) Cap() uint32
Len returns the capacity of the queue.
Click to show internal directories.
Click to hide internal directories.