diff options
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/__wait.c | 2 | ||||
-rw-r--r-- | src/thread/pthread_barrier_wait.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/__wait.c b/src/thread/__wait.c index 3d0d9204..c1d6b61c 100644 --- a/src/thread/__wait.c +++ b/src/thread/__wait.c @@ -2,7 +2,7 @@ void __wait(volatile int *addr, volatile int *waiters, int val, int priv) { - int spins=10000; + int spins=100; if (priv) priv = 128; while (spins--) { if (*addr==val) a_spin(); diff --git a/src/thread/pthread_barrier_wait.c b/src/thread/pthread_barrier_wait.c index 4a964fe3..e15abb84 100644 --- a/src/thread/pthread_barrier_wait.c +++ b/src/thread/pthread_barrier_wait.c @@ -79,7 +79,7 @@ int pthread_barrier_wait(pthread_barrier_t *b) /* First thread to enter the barrier becomes the "instance owner" */ if (!inst) { struct instance new_inst = { 0 }; - int spins = 10000; + int spins = 200; b->_b_inst = inst = &new_inst; a_store(&b->_b_lock, 0); if (b->_b_waiters) __wake(&b->_b_lock, 1, 1); |