diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-06-06 20:19:53 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-06-12 14:04:58 +0200 |
| commit | e4b0549a4c3f55828488fad6e6f5723072d6a291 (patch) | |
| tree | 719526e76bac27d489834536efce8b6ec4e2d1a5 /src/sql/doc/snippets/sqldatabase | |
| parent | 5aefe2d9a1d56f6134fcbbdff260c79082eea661 (diff) | |
QSocks5SocketEngine: don't depend on zero-initialization of QBasicAtomic
It's unclear¹ whether static zero-initialization of a static
QBasicAtomic actually initializes the object with a zero value, or
whether it remains default-constructed (without a value until a
following call to std::atomic_init gives it one).
Play it safe and use Q_BASIC_ATOMIC_INITIALIZER(0) to dodge any issues
the old code may have had.
¹ see ongoing discussion on the Jira ticket
Amends 04d6495bf773a6bb0d4fa6980df22d3b81a605b0.
Task-number: QTBUG-137465
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: Iee0d75ce10a589390afdd9069b7040a1c9c608e1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions
