Re: [trans-mem] Add futex-based serial lock

2011-08-20 Thread H.J. Lu
On Sat, Aug 20, 2011 at 8:51 AM, Torvald Riegel wrote: > This adds a futex-based version of the serial lock for use on Linux. The > futex code is basically old code of libitm (it got removed in SVN rev > 157758) with one fix for sysfutex0 on x86_64 and one change that returns > the number of woken

Re: [trans-mem] Add futex-based serial lock

2011-08-20 Thread Richard Henderson
On 08/20/2011 08:51 AM, Torvald Riegel wrote: > Add futex-based serial lock. > > * config/linux/rwlock.h: New file. > * config/linux/rwlock.c: New file. > * configure.ac: Reenable futex support (undo SVN rev 157758). > * Makefile.am: Same. > * configure.tgt: S

[trans-mem] Add futex-based serial lock

2011-08-20 Thread Torvald Riegel
This adds a futex-based version of the serial lock for use on Linux. The futex code is basically old code of libitm (it got removed in SVN rev 157758) with one fix for sysfutex0 on x86_64 and one change that returns the number of woken processes (futex_wake). The gtm_rwlock is similar in concept t