summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusconnection.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-02 11:28:17 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 11:28:17 (GMT)
commitbd3c9e428af5a804fd4631c941fb642c99f6430b (patch)
tree128baedadfa2a15c5c510a4ddb52225479fd9133 /src/dbus/qdbusconnection.cpp
parent353dacb5e4c45e860ae8be228df9647c5a71093e (diff)
downloadQt-bd3c9e428af5a804fd4631c941fb642c99f6430b.zip
Qt-bd3c9e428af5a804fd4631c941fb642c99f6430b.tar.gz
Qt-bd3c9e428af5a804fd4631c941fb642c99f6430b.tar.bz2
Add a note about this method not being safe in multithreaded contexts
Diffstat (limited to 'src/dbus/qdbusconnection.cpp')
-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 6777aa5..14cadd9 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()
{