diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2021-05-03 20:48:13 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-11 13:13:08 +0100 |
commit | 0b5f1598bd31c5a5bf62834f0a0c1c61fb7158d3 (patch) | |
tree | 589a4e3b340ca7192f927aaccc290be48fd87812 /chromium/base | |
parent | 662a5cf18ae4008fd9f99501430c7bd0ffb9c79c (diff) | |
download | qtwebengine-chromium-0b5f1598bd31c5a5bf62834f0a0c1c61fb7158d3.tar.gz |
Make clang to inline load/store atomic calls for YieldSortKey struct
Is needed for linux-clang spec build to not depend on atomic lib
Task-number: QTBUG-93294
Change-Id: I9fcb275b9dd7973653c7897c1e19ddb9f6daeb58
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
(cherry picked from commit 1d3b13e963467a19ebdd515431464771f513f6ef)
Diffstat (limited to 'chromium/base')
-rw-r--r-- | chromium/base/task/thread_pool/thread_group.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/base/task/thread_pool/thread_group.h b/chromium/base/task/thread_pool/thread_group.h index b29d0701e68..1692ac5b87b 100644 --- a/chromium/base/task/thread_pool/thread_group.h +++ b/chromium/base/task/thread_pool/thread_group.h @@ -237,7 +237,7 @@ class BASE_EXPORT ThreadGroup { // PriorityQueue from which all threads of this ThreadGroup get work. PriorityQueue priority_queue_ GUARDED_BY(lock_); - struct YieldSortKey { + struct alignas(2) YieldSortKey { TaskPriority priority; uint8_t worker_count; }; |