summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-02 13:28:17 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 13:28:17 +0200
commitbd3c9e428af5a804fd4631c941fb642c99f6430b (patch)
tree128baedadfa2a15c5c510a4ddb52225479fd9133 /src/dbus
parent353dacb5e4c45e860ae8be228df9647c5a71093e (diff)
Add a note about this method not being safe in multithreaded contexts
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusconnection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dbus/qdbusconnection.cpp b/src/dbus/qdbusconnection.cpp
index 6777aa5200..14cadd9607 100644
--- a/src/dbus/qdbusconnection.cpp
+++ b/src/dbus/qdbusconnection.cpp
@@ -973,8 +973,15 @@ QDBusConnection QDBusConnection::systemBus()
}
/*!
+ \nonreentrant
+
Returns the connection that sent the signal, if called in a slot activated
by QDBus; otherwise it returns 0.
+
+ \note Please avoid this function. This function is not thread-safe, so if
+ there's any other thread delivering a D-Bus call, this function may return
+ the wrong connection. In new code, please use QDBusContext::connection()
+ (see that class for a description on how to use it).
*/
QDBusConnection QDBusConnection::sender()
{