]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rewrite rwlock to user atomic operations to change rwlock state, this
authorDavid Xu <davidxu@FreeBSD.org>
Mon, 31 Mar 2008 02:55:49 +0000 (02:55 +0000)
committerDavid Xu <davidxu@FreeBSD.org>
Mon, 31 Mar 2008 02:55:49 +0000 (02:55 +0000)
commit5ab512bb8e53bec6eb12a69f38e4681fd7cec309
tree67ca336d4bd03f48e4487e42b0051026d755ce1a
parentb81b7f0a7dfa1a52c0ae875bcc77845c0415b671
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
lib/libthr/thread/thr_cond.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_rwlock.c