qtd3dservice: Check that CoreCon is initialized with exists()
authorAndrew Knight <andrew.knight@digia.com>
Thu, 20 Feb 2014 10:02:08 +0000 (12:02 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 06:44:22 +0000 (07:44 +0100)
commit100bcf04d827ae03b9b314bcab2ee1b3b42f337f
tree999a31230428a383f6c628bf64ff5c4bced74b4e
parent86091d62b958ef31d1fe63368a2894a38ed0a92f
qtd3dservice: Check that CoreCon is initialized with exists()

524375b attempted to fix multithreaded access with a mutex, but that
was not enough to handle access before the server was fully constructed.
This partially reverts 524375b and puts the initialization code into
a separate function which can be checked to make sure the server is
fully constructed before proceeding.

The Q_DECLARE_PRIVATE macro is added for clarity and const-correctness.

Change-Id: I0e87ee32e1b409f18b3c5fc4aab22d3c8a85cef8
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
src/qtd3dservice/xaphandler.cpp
src/shared/corecon/corecon.cpp
src/shared/corecon/corecon.h