- 完成了luevent内部的lu_mm_pool 内存池的修改,lu_mm_pool内存池参考了ngx内存池
- 添加了GTest来进行单元测试
- 完成luevent的基本功能,包括事件的创建、订阅、发布、删除等
- 添加了luevent-memory-pool的错误码
- 修复了lu_errorn 中的内存泄露;泄露原因是lu_hash_table rehash 存在问题
✅hesphoros
- 完成lu_hash_table的gtest
- 完成lu_default_file_log的封装
- 完善lu_enable_default_file_logging 中的filename参数如果包含目录则创建
- 完成函数lu_strip_directory
- 完成函数lu_contain_directory
- 完成了lu_enable_default_file_logging中的filename不为空的情况
- 修复了lu_evutil_get_directory 函数内部计算目录strlen的错误
- 完成test_lu_evutil_get_dict
- feat: 添加VSCode配置文件并优化日志路径处理
✅hesphoros
- 对tests下的test_main内部的TEST进行模块划分
- 解决undefined reference to lu_mm_pool_alloc(lu_mm_pool_s*, unsigned long) 等问题
- 完善lu_event的支持
- 网络IO事件
- 定时器事件(时间事件)
- 信号事件
- 活动的事件队列
- 信号操作的函数接口
- IO操作的函数接口
只实现epollops, pollops,selectops
/* Array of backends in order of preference. */
static const struct eventop *eventops[] = {
#ifdef EVENT__HAVE_EVENT_PORTS
&evportops,
#endif
#ifdef EVENT__HAVE_WORKING_KQUEUE
&kqops,
#endif
#ifdef EVENT__HAVE_EPOLL
&epollops,
#endif
#ifdef EVENT__HAVE_DEVPOLL
&devpollops,
#endif
#ifdef EVENT__HAVE_POLL
&pollops,
#endif
#ifdef EVENT__HAVE_SELECT
&selectops,
#endif
#ifdef _WIN32
&win32ops,
#endif
#ifdef EVENT__HAVE_WEPOLL
&wepollops,
#endif
NULL
};
no progress
- 完成ev_base 后端的封装,支持epool select poll 等后端
- 完善了mm_internal 中的memzero模块,
lu_event_mm_memzero_ - 修复了lu_event_mm_free_中的悬挂指针问题
- lu_log_functions_global_中完善了memzero模块,日志回调函数也支持了memzero的回调
- 修复了lu_mm_aligned_malloc_fn_ 函数指针的返回值int-> void*
- 编写monotonic_time的documenation文档
- 编写struct_timespec_documenation文档
- 在lu_event_internal中对lu_min_heap_ 重复包含问题进行修复
- 添加了lu_evthread-internal.h用于内部保证线程安全
- 优化了lu_utils中的时间函数 时间加法 时间减法 时间比较
- 更新对posix的单调时钟support
- 完成此方法lu_evutil_configure_monotonic_time_
- lu_evutil_monotonic_timer_t 定义且完成单调计时器
- 重构了lu_event_struct ,移动了lu_event_t 和lu_callback_t 到lu_event_struct中
- 修复了lu_event_base_s中的active_queues active_later_queue 成员; 其类型TAILQ_HEAD(lu_evcallback_list, lu_event_callback_t)
- 添加了lu_evsiganl-internal.h 用于内部的信号处理
- 在lu_evsiganl-internal中提案加了LU_EVTHREAD_GET_ID LU_EVBASE_IN_THREAD。。。等宏函数
- 在lu_evsiganl.c中完成lu_evthread_condition_callbacks_t 等 lu_evthread_set_condition_callbacks等的定义
- 完成了lu_evsignal_info_t 结构体,保存signal的相关信息
- 修复了lu_min_heap_ 中的函数,去除了static修饰符,,使代码全文可见
- 在lu_utils中添加了断言辅助宏函数
- 完善了mm_internal
lu_event_base_new_with_config
函数中的最小时间堆的初始化,以及信号通知 - 在main.c 中include 新增头文件
- 在eventbase->io :(type):lu_event_io_map_t中决策不使用内部的hash表而是使用默认的表结构即event_struct 中的lu_event_signal_map_t
- 修复了lu_event_dlist的定义,为双向链表结构;使用LIST_HEAD(lu_event_dlist, lu_event_t) 进行定义;定于于lu_event_struct中
- 更新了luevent的开发文档
- 在lu_changelist-internal.h中修正了lu_event_changelist_t lu_event_change_t的定义
- lu_changelist-internal.h中支持了cpp包含
- 将lu_event_io_map_t的定义更改到lu_evmap.h中 且修正了重复包含问题
- 在lu_event-internal.h中include lu_evmap.h 且move lu_event_changelist_t
- lu_event_base_new_with_config 新增信号 io 初始化逻辑位于lu_evmap.c中
- lu_evmap.c中 lu_event_changelist_init lu_evmap_siganl_initmap lu_evmap_io_initmap 完成初始化
- 修正了lu_event_op_s 中的int指针错误
- 添加了epoll_create的开发文档
- 添加了lu_epoll.h 实现了lu_epoll_ops的初始化函数(epool_ops lu_epool_op)
- epoll_ops可自定义适配是否使用changelist
- lu_event-internal.h中增加了lu_event_method_feature_u的相关文档
- sigfd_init_的实现(根据signalfd )
- 新增了sigfdops的实现
- 在lu_memory_managge模块中实现了memzero memcopy 以及内部的日志指针和自定义分配指针 以及相关str宏
- feat(api): 添加lu_event_assign函数及信号处理相关改进
- 完善了lu_event_assign的实现
- 完成了lu_event_assign的基本实现
- 完善了lu_event_t内部成员变量的快速访问宏 ev_io_timeout ev_callback ev_arg 等
- 完成了 lu_event_t的 flags LU_EV_TIMEOUT LU_EV_ET
- 在struct lu_event_callback_s 中rename value evcb_events to evcb_flags
- rename lu_event_t->ev_callback to ev_evcallback
- lu_event_t=>ev_signal-> ev_signum to ev_ncalls
- 定义LU_EV_LIST_TIMEOUT等宏
- define Event closure codes : LU_EV_CLOSURE_EVENT
- 完善了lu_event_base_s中的成员函数
- 修复了lu_evutil_getenv_内部getenv返回值为空的处理
- feat: 添加事件优先级设置与删除函数
- style: 移除多余空行
- refactor: 添加错误检查并优化代码
- 完善了lu_common_timeout_list_s的实现,lu_common_timeout_list_t->events的队头定义
- 完善了lu_common_timeout_list_s的实现,lu_common_timeout_list_t->events的队头定义
- 添加了LU_EVUTIL_TOLOWER_TABLE LU_EVUTIL_TOUPPER_TABLE 字符大小写映射表
- LU_EVUTIL_TOLOWER_ LU_EVUTIL_TOUPPER_ 转换宏
- lu_evutil_timerclear 宏函数的定义
- lu_event_s内部添加了ev_fd
- 添加lu_event_del_noblock函数
- 修复了LU_EVBASE_NEED_NOTIFY 宏函数的语法错误
- 修复LU_EVBASE_RELEASE_LOCK 函数的多定义
- 新增LU_EV_SOCK_FMT LU_EV_SOCK_ARG等宏
- 实现lu_event_del_nolock_ 函数
- 实现lu_event_del_noblock函数
- 实现lu_event_is_method_disabled函数
-
lu_evmap_io_clear_
-
lu_evmap_signal_clear_
-
lu_event_changelist_freemem_
-
LU_EVTHREAD_FREE_COND
-
lu_event_callback_cancel_nolock_
-
event_base_once
-
lu_event_queue_remove_timeout
-
event_queue_remove_active
-
event_to_event_callback
-
event_queue_remove_active_later
-
event_queue_remove_inserted
-
evmap_io_del_
-
evmap_signal_del_
-
event_haveevents
-
N_ACTIVE_CALLBACKS
-
evthread_notify_base
-
lu_event_debug_note_del_
-
LU_EVTHREAD_COND_WAIT
-
lu_evthread_is_debug_lock_held_
- feat: 添加事件优先级设置与删除函数
- style: 移除多余空行
- refactor: 添加错误检查并优化代码
- perf: 完善lu_common_timeout_list_s的实现,优化相关结构定义