diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-05-06 21:45:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-05-06 21:45:48 -0400 |
commit | 77f15d108ee021d4dfbeebe793661131c4470d4d (patch) | |
tree | ff6592cd0a1cc22fb94a16a39e9df02fc8d73e17 /src/stdio | |
parent | 9dd6399c95ed3ebc62492f6dedc569b5f0d8bb8e (diff) | |
download | musl-77f15d108ee021d4dfbeebe793661131c4470d4d.tar.gz musl-77f15d108ee021d4dfbeebe793661131c4470d4d.tar.bz2 musl-77f15d108ee021d4dfbeebe793661131c4470d4d.tar.xz musl-77f15d108ee021d4dfbeebe793661131c4470d4d.zip |
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/stdio')
-rw-r--r-- | src/stdio/__lockfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__lockfile.c b/src/stdio/__lockfile.c index 4e0239e7..66a4d26d 100644 --- a/src/stdio/__lockfile.c +++ b/src/stdio/__lockfile.c @@ -3,7 +3,7 @@ void __lockfile(FILE *f) { - int spins=100000; + int spins=10000; int tid; if (f->lock < 0) return; |