Date: Thu, 14 Dec 2006 13:22:02 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libthr/thread thr_mutex.c thr_umtx.h Message-ID: <200612141322.kBEDM3FM098186@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2006-12-14 13:22:02 UTC
FreeBSD src repository
Modified files:
lib/libthr/thread thr_mutex.c thr_umtx.h
Log:
Create inline function _thr_umutex_trylock2 to only try one atomic
operation, if it is failed, we call syscall directly, this saves
one atomic operation per lock contention.
Revision Changes Path
1.49 +3 -3 src/lib/libthr/thread/thr_mutex.c
1.9 +8 -0 src/lib/libthr/thread/thr_umtx.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612141322.kBEDM3FM098186>
