Re-entrancy of QtDBus Bindings

Ogden, Nick nick.ogden at usa.g4s.com
Tue Mar 6 02:14:32 PST 2012


Is anyone able to confirm that QDBusAbstractInterface::call() is re-entrant by the Qt definition of re-entrancy?

The documentation of the class does not explicitly say (with the exception of QDBusAbstractInterface::asyncCallWithArgumentList(), which is threadsafe) and the Qt documentation on thread safety / re-entrancy is a little unclear since:

"a class is said to be reentrant if its member functions can be called safely from multiple threads, as long as each thread uses a different instance of the class."

Which, if combined with the later stated:

"If a class is not marked as thread-safe or reentrant then a specific instance of that class should not be accessed from different threads."

Would seem to suggest that by default, if a class is not marked as thread safe or re-entrant it is implicitly re-entrant, but this sounds like a dangerous assumption to me.
--
Nick Ogden
Software Engineer
G4S Technology Ltd.

nick.ogden at g4tec.com<mailto:nick.ogden at g4tec.com>
www.g4stechnology.com<http://www.g4stechnology.com/>
Challenge House,
International Drive,
Tewkesbury,
Gloucestershire,
GL20 8UQ, UK

P Please consider the environment before printing this email


________________________________
The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120306/c15e652a/attachment.html>


More information about the dbus mailing list