cvs commit: src/lib/libthr/thread thr_cond.c thr_private.h thr_rwlock.c

Jeff Roberson jroberson at chesapeake.net
Mon Mar 31 18:03:40 PDT 2008


On Mon, 31 Mar 2008, David Xu wrote:

> davidxu     2008-03-31 02:55:50 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    lib/libthr/thread    thr_cond.c thr_private.h thr_rwlock.c
>  Log:
>  Rewrite rwlock to user atomic operations to change rwlock state, this
>  eliminates internal mutex lock contention when most rwlock operations
>  are read.
>
>  Orignal patch provided by: jeff

Thanks David!

Do you still plan to do kernel side support so we can totally eliminate 
the pthread mutex and condvars from rwlock?  I have evidence that this 
would produce further improvements.

Jeff

>
>  Revision  Changes    Path
>  1.24      +53 -0     src/lib/libthr/thread/thr_cond.c
>  1.86      +5 -1      src/lib/libthr/thread/thr_private.h
>  1.11      +222 -139  src/lib/libthr/thread/thr_rwlock.c
>


More information about the cvs-src mailing list