Merge branch 'pr/async-logger' into 'master'

Draft: log: add async logging

See merge request pulseaudio/pulseaudio!459
This commit is contained in:
Igor Kovalenko 2026-01-12 05:31:31 +00:00
commit ffbc8c3610
8 changed files with 187 additions and 3 deletions

View file

@ -1243,6 +1243,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
@ -1356,6 +1359,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);