log: add async logging

This commit is contained in:
Igor V. Kovalenko 2020-12-31 00:21:41 +03:00
parent 8db4dff2c5
commit 4d8d4e9458
8 changed files with 183 additions and 3 deletions

View file

@ -1094,6 +1094,9 @@ int main(int argc, char *argv[]) {
if (!conf->no_cpu_limit)
pa_assert_se(pa_cpu_limit_init(pa_mainloop_get_api(mainloop)) == 0);
if (conf->log_async)
pa_log_start_async();
buf = pa_strbuf_new();
#ifdef HAVE_DBUS
@ -1183,6 +1186,8 @@ int main(int argc, char *argv[]) {
#endif
finish:
pa_log_stop_async();
#ifdef HAVE_DBUS
if (server_bus)
pa_dbus_connection_unref(server_bus);