diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-06-14 01:23:42 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-06-14 01:23:42 -0400 |
commit | 6232b96f5153d0b718054a8bc569fcd7d596bab2 (patch) | |
tree | 0fe36b6b009ece51152b40777c4a31d79b25f374 /src/thread/__lock.c | |
parent | 0e1762539c2ad359ba10502cdfb750b5afd2329e (diff) | |
download | musl-6232b96f5153d0b718054a8bc569fcd7d596bab2.tar.gz musl-6232b96f5153d0b718054a8bc569fcd7d596bab2.tar.bz2 musl-6232b96f5153d0b718054a8bc569fcd7d596bab2.tar.xz musl-6232b96f5153d0b718054a8bc569fcd7d596bab2.zip |
minor locking optimizations
Diffstat (limited to 'src/thread/__lock.c')
-rw-r--r-- | src/thread/__lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |