mirror of
https://github.com/armink/EasyLogger.git
synced 2025-01-31 21:42:53 +08:00
Merge pull request #49 from z0306c/async_output_bugfix
修复异步模式下概率性导致输出日志不完整的问题
This commit is contained in:
commit
4ba5a626fc
@ -283,8 +283,6 @@ static void *async_output(void *arg) {
|
|||||||
size_t get_log_size = 0;
|
size_t get_log_size = 0;
|
||||||
static char poll_get_buf[ELOG_ASYNC_POLL_GET_LOG_BUF_SIZE];
|
static char poll_get_buf[ELOG_ASYNC_POLL_GET_LOG_BUF_SIZE];
|
||||||
|
|
||||||
ELOG_ASSERT(init_ok);
|
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
/* waiting log */
|
/* waiting log */
|
||||||
sem_wait(&output_notice);
|
sem_wait(&output_notice);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user