summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltexture.cpp
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2014-06-08 14:10:56 +0200
committerDavid Faure <david.faure@kdab.com>2014-07-01 20:23:31 +0200
commit9ee27005ee3cfa295c681a5ac04ac1c282b396ca (patch)
tree22975442a70973adfd3ebe8bab564dc20b725ee5 /src/gui/opengl/qopengltexture.cpp
parent0272ce641778ddaba6ac550b6bbfd4e5e5adaad1 (diff)
qDebug: fix data race in qt_message_print
The setting of (static) messageHandler to qDefaultMessageHandler if null was happening in multiple threads simultaneously, so it needs synchronization. Used an atomic pointer in case qInstallMessageHandler is called from a thread, but more importantly, initialized the static vars right away. Improve auto test to ensure that qInstallMessageHandler(0) still sets the default message handler. Change-Id: I70335af38c1d28a1cdba1df8a79c6006f227422e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture.cpp')
0 files changed, 0 insertions, 0 deletions