summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2025-03-21 14:52:43 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2025-03-28 04:05:57 +0100
commit2a7fa4963cdab49e19e1377a3ab627584cd6e1cc (patch)
tree94970371e995989d3e8c03a54b187b58cfe59b16 /src/corelib/thread
parentd2d74673f3dccc04894f2ea67fc7662cc6ef400b (diff)
Shuffle Q_(ALWAYS|NEVER)_INLINE around so they can be attributes
The attribute must appear before the modifiers like 'inline' and 'constexpr'. Change-Id: If3d143fc2f85a8eba6e3ac2ceca10720649f33cb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qyieldcpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/thread/qyieldcpu.h b/src/corelib/thread/qyieldcpu.h
index c30374f005a..310f2cacc5a 100644
--- a/src/corelib/thread/qyieldcpu.h
+++ b/src/corelib/thread/qyieldcpu.h
@@ -21,10 +21,11 @@ void _mm_pause(void); // the compiler recognizes as intrinsic
QT_BEGIN_NAMESPACE
+Q_ALWAYS_INLINE
#ifdef Q_CC_GNU
__attribute__((artificial))
#endif
-Q_ALWAYS_INLINE void qYieldCpu(void) Q_DECL_NOEXCEPT;
+void qYieldCpu(void) Q_DECL_NOEXCEPT;
void qYieldCpu(void)
#ifdef __cplusplus