qt5base-lts/tests/auto/corelib/io/qdebug
David Faure 9ee27005ee 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>
2014-07-01 20:23:31 +02:00
..
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
qdebug.pro Fix data race on QLoggingCategory when using qDebug from multiple threads 2014-06-20 21:54:04 +02:00
tst_qdebug.cpp qDebug: fix data race in qt_message_print 2014-07-01 20:23:31 +02:00