summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-05-06 21:45:48 -0400
committerRich Felker <dalias@aerifal.cx>2011-05-06 21:45:48 -0400
commit77f15d108ee021d4dfbeebe793661131c4470d4d (patch)
treeff6592cd0a1cc22fb94a16a39e9df02fc8d73e17 /src/thread
parent9dd6399c95ed3ebc62492f6dedc569b5f0d8bb8e (diff)
downloadmusl-77f15d108ee021d4dfbeebe793661131c4470d4d.tar.gz
reduce some ridiculously large spin counts
these should be tweaked according to testing. offhand i know 1000 is too low and 5000 is likely to be sufficiently high. consider trying to add futexes to file locking, too...
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/__wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/__wait.c b/src/thread/__wait.c
index d024fb37..041a0669 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=50000;
+ int spins=10000;
if (priv) priv = 128; priv=0;
while (spins--) {
if (*addr==val) a_spin();