mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
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".
This commit is contained in:
parent
0f9267501b
commit
83d0edf565
@ -41,14 +41,14 @@
|
|||||||
<refsect1>
|
<refsect1>
|
||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
|
|
||||||
<para><function>sd_bus_process()</function> drives the connection between the client and the message bus. That is,
|
<para><function>sd_bus_process()</function> drives the connection between the client and the message bus.
|
||||||
it handles connecting, authentication, and message processing. When invoked pending I/O work is executed, and
|
That is, it handles connecting, authentication, and processing of messages. When invoked, pending I/O
|
||||||
queued incoming messages are dispatched to registered callbacks. Each time it is invoked a single operation is
|
work is executed, and queued incoming messages are dispatched to registered callbacks. Each time it is
|
||||||
executed. It returns zero when no operations were pending and positive if a message was processed. When zero is
|
invoked a single operation is executed. It returns zero when no operations were pending and positive if a
|
||||||
returned the caller should synchronously poll for I/O events before calling into
|
message was processed. When zero is returned the caller should poll for I/O events before calling into
|
||||||
<function>sd_bus_process()</function> again. For that either use the simple, synchronous
|
<function>sd_bus_process()</function> again. For that either use the simple, blocking
|
||||||
<citerefentry><refentrytitle>sd_bus_wait</refentrytitle><manvolnum>3</manvolnum></citerefentry> call, or hook up
|
<citerefentry><refentrytitle>sd_bus_wait</refentrytitle><manvolnum>3</manvolnum></citerefentry> call, or
|
||||||
the bus connection object to an external or manual event loop using
|
hook up the bus connection object to an external or manual event loop using
|
||||||
<citerefentry><refentrytitle>sd_bus_get_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
|
<citerefentry><refentrytitle>sd_bus_get_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user