summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2019-12-18 18:45:36 -0800
committerThiago Macieira <thiago.macieira@intel.com>2020-03-03 14:36:32 -0800
commitae6f73e8566fa76470937aca737141183929a5ec (patch)
tree4a45798d9c4d6b1e5f163a4d215ce4988e76d1bc /tests/auto
parentef92ac5636c2f0407fba8141c35ea61d391fd479 (diff)
QLibrary: introduce a mutex to protect non-atomic internals
And make pHnd atomic. The majority of the variables is updated in QLibraryPrivate::load_sys and updatePluginState(), which get the mutex protection. QLibraryPrivate::unload_sys() doesn't need a mutex protection because we have the refcounting. [ChangeLog][QtCore][QLibrary & QPluginLoader] Fixed a number of race conditions caused by having two QLibrary objects pointing to the same library being operated in different threads. Fixes: QTBUG-39642 Change-Id: I46bf1f65e8db46afbde5fffd15e1a5b3f5e74ea4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions