Documentation
¶
Index ¶
Constants ¶
View Source
const (
ScheQueueSize = 9999
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncSelector ¶
type FuncSelector struct {
// contains filtered or unexported fields
}
func NewFuncSelector ¶
func NewFuncSelector(chanWait reflect.Value, fun SelectorFunc) *FuncSelector
func (*FuncSelector) DoTask ¶
func (s *FuncSelector) DoTask(c ISelectorContainor, v reflect.Value, recvOk bool)
func (*FuncSelector) GetChannel ¶
func (s *FuncSelector) GetChannel() reflect.Value
type IChanSelector ¶
type ISelectorContainor ¶
type ISelectorContainor interface {
Dummy()
}
type MultiSelector ¶
type MultiSelector struct {
// contains filtered or unexported fields
}
动态的加入通道读取Select 避免写一个很明确的select列表
func NewMultiSelector ¶
func NewMultiSelector() *MultiSelector
新添加的逻辑,但是前面的通道是空的 那么需要等待前面事件 考虑加入要给超时
func (*MultiSelector) AddSelector ¶
func (s *MultiSelector) AddSelector(selector IChanSelector)
加入一个锁
func (*MultiSelector) Dummy ¶
func (s *MultiSelector) Dummy()
func (*MultiSelector) HandleOnce ¶
func (s *MultiSelector) HandleOnce()
func (*MultiSelector) Stop ¶
func (s *MultiSelector) Stop()
type RunTaskIdService ¶
type RunTaskIdService struct {
// contains filtered or unexported fields
}
--------------------------
func (*RunTaskIdService) AllocId ¶
func (s *RunTaskIdService) AllocId() uint32
type Sche ¶
type Sche struct {
// contains filtered or unexported fields
}
type ScheMgr ¶
type ScheMgr struct {
// contains filtered or unexported fields
}
-------------------------- 管理器,通过名字来创建和访问sche
var ( TheScheMgr *ScheMgr = NewScheMgr() DefaultScheMgr *ScheMgr = TheScheMgr )
func NewScheMgr ¶
func NewScheMgr() *ScheMgr
type SelectorData ¶
type SelectorData struct {
// contains filtered or unexported fields
}
-----------------------------
type SelectorFunc ¶
----------------------------- 函数选择器
Click to show internal directories.
Click to hide internal directories.