From 83d0edf5651b0e5861926363ce65f3e4a69fe08a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 16 Nov 2023 11:12:00 +0100 Subject: [PATCH] man/sd_bus_process: fix confusion about "synchronous" An event loop is not "synchronous". So we shouldn't say that the client must "synchrounusly poll" if we recommend an event loop. Let's just say it should poll, and say that "sd_bus_wait()" is blocking, which is clearer and more correct than "synchronous". --- man/sd_bus_process.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/man/sd_bus_process.xml b/man/sd_bus_process.xml index f16b30ec6c9..8e142dd97a7 100644 --- a/man/sd_bus_process.xml +++ b/man/sd_bus_process.xml @@ -41,14 +41,14 @@ Description - sd_bus_process() drives the connection between the client and the message bus. That is, - it handles connecting, authentication, and message processing. When invoked pending I/O work is executed, and - queued incoming messages are dispatched to registered callbacks. Each time it is invoked a single operation is - executed. It returns zero when no operations were pending and positive if a message was processed. When zero is - returned the caller should synchronously poll for I/O events before calling into - sd_bus_process() again. For that either use the simple, synchronous - sd_bus_wait3 call, or hook up - the bus connection object to an external or manual event loop using + sd_bus_process() drives the connection between the client and the message bus. + That is, it handles connecting, authentication, and processing of messages. When invoked, pending I/O + work is executed, and queued incoming messages are dispatched to registered callbacks. Each time it is + invoked a single operation is executed. It returns zero when no operations were pending and positive if a + message was processed. When zero is returned the caller should poll for I/O events before calling into + sd_bus_process() again. For that either use the simple, blocking + sd_bus_wait3 call, or + hook up the bus connection object to an external or manual event loop using sd_bus_get_fd3. -- 2.47.3