Fix race condition in processJobs()
authorBea Lam <bea.lam@nokia.com>
Thu, 11 Aug 2011 03:26:15 +0000 (13:26 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 12 Aug 2011 22:01:12 +0000 (00:01 +0200)
commitb631e1e4f245dc8ba4460bda6acb4ed1ef63bcdc
treedd549f4e1089b1fd81b993f2f8ab9c8a04b9ac3b
parent882831e39e882ea4a7f7b3e6ea719b969951778f
Fix race condition in processJobs()

Don't modify list of running jobs when a job is aborted since the job
may have just started. Wait till the next time processJobs() is invoked
for a new job and discard the aborted job at that time.

(cherry picked from commit f55ecc080d0c5eca4e65a235c63ab13867c86874
in 4.8)

Task-number: QTBUG-20841
Change-Id: Icb4cd089505c0634d3fec023b52c61bbc878404f
Reviewed-on: http://codereview.qt.nokia.com/2837
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/util/qdeclarativexmllistmodel.cpp