From 77f15d108ee021d4dfbeebe793661131c4470d4d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 6 May 2011 21:45:48 -0400 Subject: 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... --- src/stdio/__lockfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio/__lockfile.c') 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; -- cgit v1.2.1