This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Difference between elision-lock.c and -trylock.c
- From: Andi Kleen <andi at firstfloor dot org>
- To: libc-alpha at sourceware dot org, andi at firstfloor dot org
- Date: Mon, 22 Jul 2013 16:36:03 +0200
- Subject: Re: Difference between elision-lock.c and -trylock.c
- References: <20130722094955 dot GA5549 at linux dot vnet dot ibm dot com>
On Mon, Jul 22, 2013 at 11:49:55AM +0200, Dominik Vogt wrote:
> Why does elision-trylock.c _not_ have this code from
> elision-lock.c?
This code really should have a wait for lock-free, but it's unclear if that
makes sense for trylock. So I left it out for now.
Longer term the adaption for lock busy may be removed.
-Andi