diff options
author | David Faure <david.faure@kdab.com> | 2014-06-08 14:10:56 +0200 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2014-07-01 20:23:31 +0200 |
commit | 9ee27005ee3cfa295c681a5ac04ac1c282b396ca (patch) | |
tree | 22975442a70973adfd3ebe8bab564dc20b725ee5 /src/gui/opengl/qopengltexture.cpp | |
parent | 0272ce641778ddaba6ac550b6bbfd4e5e5adaad1 (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