ePump v2.1.15
- When a worker thread starts a timer, such as adding file descriptor or timer to an ePump thread, the ePump thread needs to be awakened from suspension. The wakeup operation is implemented by epwakeup facility. The current version fixed and improved wakeup mechanism.
- Respectively compatible with Windows IOCP, Linux EventFD and other ePump wakeup mechanism;
- Simplified the procedure of associating wakeup-fd with iodev_t and adding it to monitoring queue of ePump thread.
本版本更新的内容如下:
- 工作线程启动定时器等需要往ePump线程中添加监听描述符或定时器时,需要将ePump线程从休眠状态唤醒,唤醒操作是由epwakeup来实现的,这个版本修改并完善了唤醒机制;
- 分别兼容Windows IOCP机制和Linux EventFD等几种ePump线程的唤醒机制,整合实现了epcore_wakeup_init, epcore_wakeup_clean, epcore_wakeup_send, epcore_wakeup_recv等;
- 简化了wakeup fd关联iodev_t并加入到ePump监控线程的处理流程;