summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtimezone.h
diff options
context:
space:
mode:
authorJungi Byun <jungi.byun@lge.com>2021-12-21 14:37:36 +0900
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-01-26 01:01:31 +0000
commit574b625914bf6913d44d0c33ed16a7432abeecba (patch)
treecc755ea9e536923107155e42a46b37016b23e92c /src/corelib/tools/qtimezone.h
parent2e29a427ca2127ff7aff23049c65881d3c55bb40 (diff)
evdev: Prevent race condition in touch events processingHEADdev
Unlike other input devices, touch devices are managed by corresponding handler threads which are not the main thread. InputEvent that is inherited by TouchEvent has a constant pointer member for device, but in touch events case, handler threads may destroy the device which is pointed by events while processing these events in main thread, and this may cause critical potential issues such as crash. In order to prevent this race condition, move device of QEvdevTouchScreenHandler into main thread and delete this device later if QGuiApplication instance exists when handler thread quits, and check event's device is valid when processing touch events. Change-Id: I02583238d97d768abcc544ee882160eda3178282 Reviewed-by: Elvis Lee <kwangwoong.lee@lge.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/corelib/tools/qtimezone.h')
0 files changed, 0 insertions, 0 deletions