qt5base-lts/src
Marc Mutz 236d4637b2 Optimize QEventDispatcherWinRT::runOnMainThread()
- use std::make_shared instead of QSharedPointer
  - two memory allocations saved
- co-locate semaphore and HRESULT object in a single State object
  - one more memory allocation saved
- pass the shared_ptr<State> by value into the runnable
  - two more memory allocations saved

Not only is the new code much faster, it's also much more readable.

Also use QSemaphoreReleaser, just in case the delegate should throw.

Change-Id: Ib99b9da86984d440d10b72e3071aa88099e24a1f
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-09-05 15:40:40 +00:00
..
3rdparty Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
android Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
angle Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-28 01:00:23 +02:00
concurrent Port away from QMutexLocker in public headers 2019-08-25 04:48:11 +00:00
corelib Optimize QEventDispatcherWinRT::runOnMainThread() 2019-09-05 15:40:40 +00:00
dbus Merge remote-tracking branch 'origin/5.13' into 5.14 2019-09-04 07:03:54 +02:00
gui Doc: Remove 'f.i.' 2019-09-04 17:23:24 +02:00
network Remove QOperatingSystemVersion::WindowsVista 2019-09-05 08:25:05 +02:00
opengl Port some trivial cases from QMutex to QRecursiveMutex 2019-07-06 11:22:37 +02:00
openglextensions Move forward-declaration inside of namespace 2019-05-15 10:58:49 +00:00
platformheaders Merge remote-tracking branch 'origin/5.13' into dev 2019-06-27 14:38:03 +02:00
platformsupport Merge remote-tracking branch 'origin/5.13' into 5.14 2019-09-04 07:03:54 +02:00
plugins Remove QOperatingSystemVersion::WindowsVista 2019-09-05 08:25:05 +02:00
printsupport Remove dead code from Qt 4 times 2019-08-20 22:27:46 +00:00
sql Fix build without feature.stringlistmodel 2019-06-30 17:16:52 +09:00
testlib Merge remote-tracking branch 'origin/5.13' into dev 2019-08-16 01:00:33 +02:00
tools Android: Fix architecture extraction from file path in androiddeployqt 2019-09-03 16:44:08 +02:00
widgets QGraphicsView: mark obsolete flag DontClipPainter as deprecated 2019-09-05 17:40:29 +02:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml Be less laissez-faire with implicit conversions to QChar 2019-07-09 07:09:44 +02:00
src.pro Merge remote-tracking branch 'origin/5.13' into dev 2019-07-17 10:44:21 +02:00