diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2023-04-27 20:37:18 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2023-05-23 06:20:09 +0200 |
commit | 67b8dec0d0210be43c4018e3fd1c1c7419aaaec0 (patch) | |
tree | 9aa10c8350c73a061637ecd6d27db26ab0b80029 /src/tools/uic/cpp | |
parent | bc85390dccd08ec99682106b835b97928b61894f (diff) |
QSqlDatabase: use a QReadWriteLock to access DriverDict
DriverDict might be accessed from different threads so we have to make
sure it's thread-safe. Use the already existing QReadWriteLock from
QConnectionDict for later merging of these two global instances. The two
instances do not interfere each other (DriverDict is a dictionary for
custom registered sql drivers, QConnectionDict contains all current
active database connections) so the dual-use of the mutex is fine.
Pick-to: 6.5 6.2 5.15
Change-Id: I84c77df666e72e826d0d3d291cecd5417bbd1baf
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/tools/uic/cpp')
0 files changed, 0 insertions, 0 deletions