Fix crashes in tst_qthreadpool on Windows.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 17 Jan 2013 16:12:59 +0000 (17:12 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 18 Jan 2013 17:38:22 +0000 (18:38 +0100)
commit90c410872e7bedc11b84ea6f6ab97fb0346ad140
treebc42513ebc88d1eeefaf3c0c288aa261360bee62
parent614a9a435ea4b94080ea12c2fcf98d2699731e34
Fix crashes in tst_qthreadpool on Windows.

Qt 4.8 shows frequent crashes in runMultiple apparently caused
by the QMutex construction in the free functions by different
threads. Use a common QMutex class member instead.

Change-Id: I851d4e2d3637a7b4f404ed843f5360c10caa21f5
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from qtbase/ced523af7a3559b0f30dd2a4406e05418ff7ec89)
tests/auto/qthreadpool/tst_qthreadpool.cpp