diff options
| author | armink <[email protected]> | 2019-05-16 09:53:56 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2019-05-16 09:55:35 +0800 |
| commit | 11b0c65921c7670fb577865d7b0646827554be4a (patch) | |
| tree | e4b56d214ffef0a49d1e89611803ab17d3fba802 /components | |
| parent | 4539172f5c97306a322ac1768c5c8eb4f878ea3c (diff) | |
[components][ulog] Make the asynchronous log output more timely.
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/ulog/ulog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index 36d5ac275f..9af5fe5b9d 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -1187,6 +1187,8 @@ void ulog_async_waiting_log(rt_int32_t time) static void async_output_thread_entry(void *param) { + ulog_async_output(); + while (1) { ulog_async_waiting_log(RT_WAITING_FOREVER); |
