Commit Graph

7 Commits

Author SHA1 Message Date
ryo
88f5c690f5 add INIT_ONCE(9), FINI_ONCE(9) with changing once_t.
Welcome to 8.99.36
2019-03-19 08:16:51 +00:00
cegger
b8817e4aed ansify function definitions 2009-03-15 17:14:40 +00:00
pooka
6dbf67cea1 Atomic ops are unnecessary here. pointed out by ad 2008-10-09 12:14:06 +00:00
pooka
225570303b 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.
2008-10-09 10:48:21 +00:00
yamt
dae53410a7 - tweak RUN_ONCE api to allow init_func returns an error.
- physio: handle failure of workqueue_create.
2006-01-16 21:45:38 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
yamt
8d3549ebb0 add something like pthread_once(). 2005-10-29 11:13:21 +00:00