Documentation ¶
Index ¶
- type CElement
- type CList
- func (l *CList) AppendList(l2 *CList)
- func (l *CList) Back() *CElement
- func (l *CList) BackWait() *CElement
- func (l *CList) Clear()
- func (l *CList) Front() *CElement
- func (l *CList) FrontWait() *CElement
- func (l *CList) Init() *CList
- func (l *CList) Len() int
- func (l *CList) PushBack(v interface{}) *CElement
- func (l *CList) Remove(e *CElement) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CElement ¶
type CElement struct { Value interface{} // contains filtered or unexported fields }
CElement is an element of a linked-list Traversal from a CElement are goroutine-safe.
func (*CElement) DetachNext ¶
func (e *CElement) DetachNext()
func (*CElement) DetachPrev ¶
func (e *CElement) DetachPrev()
func (*CElement) NextWait ¶
Blocking implementation of Next(). May return nil iff CElement was tail and got removed.
type CList ¶
type CList struct {
// contains filtered or unexported fields
}
CList represents a linked list. The zero value for CList is an empty list ready to use. Operations are goroutine-safe.
func (*CList) AppendList ¶
TODO whatif one of l2's element is waiting for efficient, don't want to check every element
Click to show internal directories.
Click to hide internal directories.