EventLoopImpl

网络I/O处理的事件循环类

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addEvent
bool addEvent(AsyncEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
addEventList
void addEventList(AsyncEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
delEvent
bool delEvent(AsyncEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
doTaskList
void doTaskList()
Undocumented in source. Be warned that the author may not have intended to support it.
finishDoFreeYuTask
void finishDoFreeYuTask(AbstractTask task)
Undocumented in source. Be warned that the author may not have intended to support it.
isInLoopThread
bool isInLoopThread()
Undocumented in source. Be warned that the author may not have intended to support it.
isRuning
bool isRuning()
Undocumented in source. Be warned that the author may not have intended to support it.
modEvent
bool modEvent(AsyncEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
post
void post(void delegate() cback)
Undocumented in source.
post
void post(AbstractTask task)
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run(int timeout)

开始执行事件等待。 @param :timeout = 无事件的超时等待时间。单位:毫秒,如果是用CustomTimer, 这个超时时间将无效。 @note : 此函数可以多线程同时执行,实现多个线程共用一个事件调度

stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
weakUp
void weakUp()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

timerWheel
ETimerWheel timerWheel [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta