qt5base-lts/tests/auto/corelib/thread/qthread
Olivier Goffart ec5e59b73c QThread::isFinished should return true from finished()
and isRunning() should return false.

This restore the Qt 4.7 behaviour

In Qt 4.7, the finished() was called with the thread's intenal mutex
locked. Which mean that:
 - Call to isRunning or isFinished called from a slot connected to
   finish within the thread would deadlock. (Hence no compatibility
   to keep here)
 - Call to isRunning or isFinished from a slot connected with
   QueuedConnection in another thread would lock the mutex until
   the destructors are finished. and then return as if the thread have
   finished.

Change-Id: I963eccae8f7634aff90cc4bbab6ca886a78e35eb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2011-11-03 18:43:52 +01:00
..
.gitignore Moving relevant tests to corelib/thread 2011-09-01 12:54:58 +02:00
qthread.pro corelib: eliminated usage of qttest_p4.prf 2011-10-25 05:03:08 +02:00
tst_qthread.cpp QThread::isFinished should return true from finished() 2011-11-03 18:43:52 +01:00