summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qatomic_cxx11.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-07-06 10:57:35 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-07-25 07:21:56 -0700
commita7f227f56cfe562280e89d3c73040f7e8384129e (patch)
tree70fd65f8f5b0335fd8843d6eeebd0cbcef8f167a /src/corelib/thread/qatomic_cxx11.h
parentaaa8c3835303e6eb3579df300e06ea6696ca769f (diff)
Make qYieldCpu() public API
Rewritten to be a bit simpler, added a few more yield/YieldProcessor alternatives, added RISC-V support. [ChangeLog][QtCore] Added qYieldCpu() function. Fixes: QTBUG-103014 Change-Id: I53335f845a1345299031fffd176f59032e7400f5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/thread/qatomic_cxx11.h')
-rw-r--r--src/corelib/thread/qatomic_cxx11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/thread/qatomic_cxx11.h b/src/corelib/thread/qatomic_cxx11.h
index 4f55a53ae3..47a7bc9a10 100644
--- a/src/corelib/thread/qatomic_cxx11.h
+++ b/src/corelib/thread/qatomic_cxx11.h
@@ -6,6 +6,7 @@
#define QATOMIC_CXX11_H
#include <QtCore/qgenericatomic.h>
+#include <QtCore/qyieldcpu.h>
#include <atomic>
QT_BEGIN_NAMESPACE