diff options
author | Havoc Pennington <hp@redhat.com> | 2005-02-13 20:21:59 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-02-13 20:21:59 +0000 |
commit | 7f2973c8d1e124f4744af0bee73679607511f3a4 (patch) | |
tree | 91612316b2d4c18c77b8a0d5196afcbf234b1493 /dbus/dbus-internals.c | |
parent | 770dfe057125f2061772cbb810ff6849cbb3d93c (diff) |
2005-02-13 Havoc Pennington <hp@redhat.com>
* 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
Diffstat (limited to 'dbus/dbus-internals.c')
-rw-r--r-- | dbus/dbus-internals.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <pthread.h> /** * 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); |