Date: Sun, 18 Jun 2017 17:58:05 +0300 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Re: [PATCH] a new lock algorithm with lock value and CS counts in the same atomic int On Sun, 18 Jun 2017, Rich Felker wrote: > > I think the fastpath in __unlock can check the value of the lock against 0, > > exiting immediately if equal. > > Do you mean that would indicate that __lock was a nop because > libc.threads_minus_1 was 0 at lock time? Yes, if we didn't elide in __lock, we must observe a negative value in __unlock. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.