From 7f2973c8d1e124f4744af0bee73679607511f3a4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 13 Feb 2005 20:21:59 +0000 Subject: 2005-02-13 Havoc Pennington * dbus/dbus-connection.c (dbus_connection_return_message) (dbus_connection_borrow_message): hold dispatch lock while message is outstanding (_dbus_connection_block_for_reply): hold dispatch lock while we block for the reply, so nobody steals our reply (dbus_connection_pop_message): hold the dispatch lock while we pluck the message --- dbus/dbus-internals.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-internals.c') diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index 1e1753da..a64269ac 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -215,6 +215,7 @@ _dbus_warn (const char *format, static dbus_bool_t verbose_initted = FALSE; +#include /** * Prints a warning message to stderr * if the user has enabled verbose mode. @@ -249,7 +250,7 @@ _dbus_verbose_real (const char *format, /* Print out pid before the line */ if (need_pid) - fprintf (stderr, "%lu: ", _dbus_getpid ()); + fprintf (stderr, "%lu: 0x%lx: ", _dbus_getpid (), pthread_self ()); /* Only print pid again if the next line is a new line */ len = strlen (format); -- cgit