You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zhao Chong bd2281e935 修复异步模式下概率性导致输出日志不完整的问题
Summary:
[背景]:异步输出模式开启、断言开启,elog_async.c在初始化时,elog_async_init创建子线程完成后,
子线程处理函数async_output在一开始会对全局变量init_ok进行断言,如果为false,那么就无法进入
后续sem_wait流程,进行结果输出了;而init_ok是在子线程创建完之后,elog_async_init最后才设置
为true的,这样程序的正确执行就取决于父子线程的调度顺序了
[解决办法]:子线程的处理程序中无需对init_ok进行判断,因为在while循环体中sem_wait会保证只有在
有需要输出的内容时,才会触发后续的内容输出过程
6 years ago
..
elog.c 【优化】代码细节格式。 7 years ago
elog_async.c 修复异步模式下概率性导致输出日志不完整的问题 6 years ago
elog_buf.c 1、【增加】软件运行时动态使能及失能异步及缓冲输出模式功能。使得软件在出现异常时,异常日志可以在被正常输出。 9 years ago
elog_utils.c 【修复】elog_strcpy 可能存在内存写穿的问题(PS:之前应用层已规避)。 7 years ago