Commit 6c98035c authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

QThreadPool: Fix regression from Qt 4 in dealing with priority starts

The optimisation done in cbaf52b0

 for Qt
5.0 got the order wrong of the comparison. The queue must be sorted in
decreasing priority order. But since higher numbers mean higher
priority, that means the queue must be sorted in decreasing priority
number order.

Task-number: QTBUG-29163
Change-Id: Iaf3424b9bb445bf5c71518927f37253cead454f3
Reviewed-by: default avatarKonstantin Ritt <ritt.ks@gmail.com>
parent 0cad334a
No related merge requests found
Showing with 54 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment