diff options
Diffstat (limited to 'src/chunklets/fastspin.c')
| -rw-r--r-- | src/chunklets/fastspin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunklets/fastspin.c b/src/chunklets/fastspin.c index d349395..c61d781 100644 --- a/src/chunklets/fastspin.c +++ b/src/chunklets/fastspin.c @@ -236,7 +236,7 @@ int fastspin_wait(volatile int *p_) { #else if (x > 0) return x; if (!x) { - for (int c = 1000; c; --c) { + for (int c = 40; c; --c) { x = atomic_load_explicit(p, memory_order_relaxed); RELAX(); if (x > 0) return x; @@ -269,7 +269,7 @@ top: x = 0; return; } if (x) { - for (int c = 1000; c; --c) { + for (int c = 40; c; --c) { x = atomic_load_explicit(p, memory_order_relaxed); RELAX(); // note: top sets x to 0 unnecessarily but clang actually does |
