Documentation
¶
Overview ¶
无锁消息池,多读多写, 用于goroutine 间收发消息
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SerialReadPool ¶
type SerialReadPool struct {
// contains filtered or unexported fields
}
无锁消息池,多写,有序单读(按写入时间排序)。适用于多个消息发送者,单个消息接收者模式
func SerialNew ¶
func SerialNew() *SerialReadPool
func (*SerialReadPool) Get ¶
func (p *SerialReadPool) Get() interface{}
func (*SerialReadPool) Init ¶
func (p *SerialReadPool) Init() *SerialReadPool
func (*SerialReadPool) Put ¶
func (p *SerialReadPool) Put(o interface{})
func (*SerialReadPool) Size ¶
func (p *SerialReadPool) Size() int32
Click to show internal directories.
Click to hide internal directories.