Subject: Re: lock-free data structures
To: None <tech-kern@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: tech-kern
Date: 01/05/2006 18:54:33
"Garrett D'Amore" <garrett_damore@tadpole.com> writes:

> Seems to me that some basic atomic math operations (increment,
> decrement, and test versions of those) would go a long way.

Agreed!  Some individual ports have some of their own (e.g.,
sys/arch/powerpc/include/atomic.h) for whatever MD purposes, but
there's no standardized MI interface.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))