cvs commit: src/share/man/man9 locking.9 rmlock.9 src/sys/conf
files src/sys/kern kern_rmlock.c subr_lock.c subr_pcpu.c
subr_smp.c src/sys/sys _rmlock.h lock.h pcpu.h rmlock.h smp.h
Alfred Perlstein
alfred at freebsd.org
Sun Nov 25 17:28:56 PST 2007
* Julian Elischer <julian at elischer.org> [071125 10:05] wrote:
>
> not sure why sx-locks exist at all, as they seem to be a variant of sleep.
> I think it's just a convenience function set to allow one to implement
> a sleep-derived synchronisation.
You are correct, sx locks are a faster replacement for hand rolled
msleep locks. They're not only easier to read, but the underlying
implementation is faster.
--
- Alfred Perlstein
More information about the cvs-src
mailing list