From f468907fb09e8198c4cce7e8f2ddeae8b5476b9e Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 14 Mar 2003 05:17:19 +0000 Subject: 2003-03-14 Havoc Pennington * bus/loop.c (bus_loop_iterate): add this so we can "run loop until no work remains" in test code. (the large diff here is just code movement, no actual changes) * dbus/dbus-server-debug.c (DEFAULT_INTERVAL): change interval to 1, no point waiting around for test code. (_dbus_server_debug_accept_transport): unref the timeout after adding it (right?) * dbus/dbus-transport-debug.c (DEFAULT_INTERVAL): ditto --- dbus/dbus-connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-connection.c') diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index 19fe717d..d52341a7 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -334,6 +334,7 @@ _dbus_connection_remove_watch (DBusConnection *connection, * available. Otherwise records the timeout to be added when said * function is available. Also re-adds the timeout if the * DBusAddTimeoutFunction changes. May fail due to lack of memory. + * The timeout will fire only one time. * * @param connection the connection. * @param timeout the timeout to add. @@ -1861,7 +1862,8 @@ dbus_connection_set_watch_functions (DBusConnection *connection, * dbus_timeout_get_interval. * * Once a timeout occurs, dbus_timeout_handle should be called to invoke - * the timeout's callback. + * the timeout's callback, and the timeout should be automatically + * removed. i.e. timeouts are one-shot. * * @param connection the connection. * @param add_function function to add a timeout. -- cgit