diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-07-30 08:54:30 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2019-08-05 10:14:47 -0700 |
commit | 64d949207686a0225a78de572548a5361e340ae3 (patch) | |
tree | bed366a853312316a0f12e06e66c27e65fdd4177 /qmake/qmake-aux.pro | |
parent | 8c0787cfa1a906ebe25907515d86050303b127e7 (diff) |
Fix race condition on qt_create_tls() on Windows
If this function is called by multiple threads, more than one could
reach the mutex locking and call TlsAlloc(), but only the last one would
save the data. The others would be leaked and, worse, be used by those
other threads.
[ChangeLog][QtCore][QObject] Fixed a resource leak caused by a race
condition if multiple QObjects were created at the same time, for the
first time in an application, from multiple threads (implies threads not
started with QThread).
Fixes: QTBUG-77238
Change-Id: Ife213d861bb14c1787e1fffd15b63a5818bcc807
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'qmake/qmake-aux.pro')
0 files changed, 0 insertions, 0 deletions