Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntrusiveNode ¶
type IntrusiveNode struct {
// contains filtered or unexported fields
}
IntrusiveNode default implementation of Intrusive.
func (*IntrusiveNode) Next ¶
func (d *IntrusiveNode) Next() *unsafe.Pointer
Next returns a pointer to the next object.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is a FIFO, lock-free, concurrent, multi-producer/single-consumer, linked-list-based queue.
func (*Queue) Pop ¶
func (q *Queue) Pop() interface{}
Pop removes the top value from the queue and returns it as a result of the function call.
Pop can not be used concurrently.
func (*Queue) Push ¶
Push adds a value to the end of the queue.
It's allowed to use Push concurrently from different goroutines.
func (*Queue) PushIntrusive ¶
PushIntrusive adds a value to the end of the queue. No additional allocations performed in compare of Push.
It's allowed to use Push concurrently from different goroutines.
Click to show internal directories.
Click to hide internal directories.