Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   pooka
Date:           Thu Oct  9 10:48:21 UTC 2008

Modified Files:
        src/sys/kern: init_main.c subr_once.c
        src/sys/sys: once.h

Log Message:
Rewrite once to use global locks and atomic ops to get rid of the
static simplelock initializer (and simplelock too).  The fastpath
is still lockless, so doesn't make a difference in terms of
performance.

Also fixes a hanging bug if the once routine returned an error.
It does not retry after an error occurs, as I can't really imagine
fruitful semantics for that.


To generate a diff of this commit:
cvs rdiff -r1.363 -r1.364 src/sys/kern/init_main.c
cvs rdiff -r1.3 -r1.4 src/sys/kern/subr_once.c
cvs rdiff -r1.4 -r1.5 src/sys/sys/once.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index