On Sun, Feb 28, 2010 at 8:01 PM, James Morris <james(a)jwm-art.net> wrote:
the pointer assignment is not atomic though is it?
there are atomic pointer swap instructions on almost all platforms,
and various "portable" wrappers for them. glib has them, jack's
atomic.h (copied from ...hmm, portaudio? maybe?) has them etc. etc.
is the RCU implementation provided by the linux kernel
of any use in
RT/JACK stuff?
not really.
there is a user-space RCU library under development that i saw a
presentation on at the linux plumbers conference last september. it
looked quite nice.
ardour has an RCU template class (or several, actually) that it uses
and that benefits from a few assumptions that don't hold true for the
general case of RCU.