From 6232b96f5153d0b718054a8bc569fcd7d596bab2 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 14 Jun 2011 01:23:42 -0400 Subject: minor locking optimizations --- src/thread/__lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread/__lock.c') diff --git a/src/thread/__lock.c b/src/thread/__lock.c index 2e00636f..21c85fc0 100644 --- a/src/thread/__lock.c +++ b/src/thread/__lock.c @@ -2,7 +2,7 @@ void __lock(volatile int *l) { - int spins=100000; + int spins=10000; /* Do not use futexes because we insist that unlocking is a simple * assignment to optimize non-pathological code with no contention. */ while (a_xchg(l, 1)) -- cgit v1.2.1