diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2021-11-08 14:05:41 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-11-08 22:39:45 +0100 |
commit | ac7e94090fdd0444cd56d46c0fed051481dada02 (patch) | |
tree | 07c5312f08013380d5525525653d52c0481a8ef3 /cmake | |
parent | 2010df52d4c805557255b90da4aaae8c54c443ea (diff) |
qoperatingsystemversion_win: fix thread race
If two threads call the function at the same time before the static is initialized
one of them may end up with a half-written object.
Amends 3fe89eec61e2c819bb54a5d3dfe4bc29dba49ff3
Pick-to: 6.2
Change-Id: Ie08970f9ee283fd75292a8b44a1fca89de4b04eb
Reviewed-by: Yuhang Zhao <2546789017@qq.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions