1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-01-19 07:42:52 +08:00

Merge pull request #49 from z0306c/async_output_bugfix

修复异步模式下概率性导致输出日志不完整的问题
This commit is contained in:
朱天龙 (Armink) 2019-07-26 13:39:09 +08:00 committed by GitHub
commit 4ba5a626fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,8 +283,6 @@ static void *async_output(void *arg) {
size_t get_log_size = 0;
static char poll_get_buf[ELOG_ASYNC_POLL_GET_LOG_BUF_SIZE];
ELOG_ASSERT(init_ok);
while(true) {
/* waiting log */
sem_wait(&output_notice);