sd_bus_pending_method_calls
systemd
sd_bus_pending_method_calls
3
sd_bus_pending_method_calls
Return the number of currently pending, outgoing method calls
#include <systemd/sd-bus.h>
int
sd_bus_pending_method_calls
sd_bus *
bus
Description
sd_bus_pending_method_calls() returns the number of currently pending outgoing method calls, i.e. method calls enqueued with sd_bus_call_async(3) for which no reply has been received yet, and which have not reached a timeout yet.
The bus argument may be NULL, in which case zero is returned.
Return Value
This function returns 0 if there are no pending method calls, or a NULL bus object was specified. On failure, a negative errno-style error code is returned.
Errors
Returned errors may indicate the following problems:
-ECHILD
The bus connection has been created in a different process, library or module instance.
History
sd_bus_pending_method_calls() was added in version 257.
See Also
systemd(1), sd-bus(3), sd_bus_call_async(3)
谢谢你的反馈!