summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible/widgets/qaccessiblemenu.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2012-04-16 14:43:27 +0300
committerQt by Nokia <qt-info@nokia.com>2012-04-17 18:44:13 +0200
commitcbaf52b09971edf6f3e1458f7dd677b80a1568ed (patch)
tree69397551456ebd1cf18cd3e7ff2a3fb88090858d /src/plugins/accessible/widgets/qaccessiblemenu.cpp
parent95bd974163d9103634a5ce4cbfc9bc3c4827dee1 (diff)
QThreadPool: optimize enqueueTask() for common case
the most-common case is: queue is empty or filled with tasks of the same priority; so the runnable would be put at the end of queue. both checks are cheap for us. also avoid detach()'ing by using const iterators Change-Id: Iab2255f852211f9accc8d717f778671661210ef3 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/plugins/accessible/widgets/qaccessiblemenu.cpp')
0 files changed, 0 insertions, 0 deletions