We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2665db commit b704d19Copy full SHA for b704d19
1 file changed
include/ipfixprobe/outputPlugin/outputStorage/backoffScheme.hpp
@@ -19,7 +19,10 @@ class BackoffScheme {
19
bool backoff() noexcept
20
{
21
if (m_waitCounter < m_shortWaitThreshold) {
22
- for (volatile const auto _ : std::views::iota(0, 10'000)) {}
+ for (const auto _ : std::views::iota(0, 10'000)) {
23
+ asm volatile("pause" ::: "memory");
24
+ }
25
+
26
} else if (m_waitCounter < m_longWaitThreshold) {
27
std::this_thread::yield();
28
} else {
0 commit comments