diff options
| author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-02-20 13:57:18 +0100 |
|---|---|---|
| committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-02-22 12:27:29 +0100 |
| commit | 0627ab17277ad5fa83fe6fcab5af5cd2748162a3 (patch) | |
| tree | 237ae2742dd68f20be3c93e17b96d32abfc0c09c /src/testlib/qtesttable.cpp | |
| parent | 3ad9f94ff2de3a1f812bb0139ff31e31d5ffb529 (diff) | |
QThreadPool: Protect the access to internal data with mutex
The class claims to be thread safe, however, when e.g.
one thread is calling setMaxThreadCount() and the second
is calling maxThreadCount() at the same time for the same thread pool
instance, the latter may receive rubbish data.
Protect all public setters/getters with a mutex.
Pick-to: 6.5 6.4
Change-Id: Ief29d017d4f80443fa1ae06f6b20872f07588768
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/testlib/qtesttable.cpp')
0 files changed, 0 insertions, 0 deletions
