summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qmacclipboard.h
diff options
context:
space:
mode:
authorMate Barany <mate.barany@qt.io>2023-01-13 18:18:08 +0100
committerMate Barany <mate.barany@qt.io>2023-02-08 12:59:19 +0100
commit84f0596c0ca7cb5a31077cea29592781899c13f4 (patch)
treea4271a3d74a9fab51b0de3c692ebf323d13d28b3 /src/plugins/platforms/cocoa/qmacclipboard.h
parent214c3a033a4e9191f0082bf6f88624d356a45384 (diff)
Avoid potential data races caused by qt_ntfs_permission_lookup
qt_ntfs_permission_lookup is a global, non-atomic variable which could cause problems in case of multiple threads. Introduce a new atomic variable to handle permission lookups but instead of manual incrementation/decrementation, implement a class to manage the variable. Since the atomic variable is not directly available to the user, implement helper functions to increase/decrease/check the status of the variable. Task-number: QTBUG-105804 Change-Id: If6cbcdd653c7f50ad9853a5c309e24fdeb520788 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qmacclipboard.h')
0 files changed, 0 insertions, 0 deletions