Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RwSyncList ¶
type RwSyncList struct {
// contains filtered or unexported fields
}
RwSyncList is a SyncList implementation
func (*RwSyncList) Front ¶
func (m *RwSyncList) Front() *list.Element
func (*RwSyncList) MoveToFront ¶
func (m *RwSyncList) MoveToFront(e *list.Element)
func (*RwSyncList) PushFront ¶
func (m *RwSyncList) PushFront(item interface{}) *list.Element
func (*RwSyncList) Remove ¶
func (m *RwSyncList) Remove(e *list.Element) interface{}
type SyncList ¶
type SyncList interface { // PushFront push value to list front and return list.Element PushFront(v interface{}) *list.Element // Remove the list.Element Remove(e *list.Element) interface{} // MoveToFront move the list.Element to list front MoveToFront(e *list.Element) // Front get the list front Front() *list.Element }
SyncList is thread(routine) safe list
Click to show internal directories.
Click to hide internal directories.