Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
4.7.4, 4.8.0
-
None
-
Windows
Description
QSqlDatabase::addDatabase is thread safe as the documentation say but this function calls mysql api mysql_library_init() before applying the write lock. as per the documentation of mysql_library_init() this function is not thread safe.http://dev.mysql.com/doc/refman/5.0/en/mysql-library-init.html
This function is being called from qLibraryInit() in constructor of QMYSQLDriver().
Attachments
Issue Links
- relates to
-
QTBUG-54872 MySql connection fails if first activity is not on main thread
- Closed