[pulseaudio-discuss] [PATCH] core: New LIFO style flist implementation v2.0

oku at iki.fi oku at iki.fi
Tue Aug 24 05:20:10 PDT 2010


From: Jyri Sarha <jyri.sarha at nokia.com>

Damn, I always need to read my own patches from the mailing list
before I realize that there is something wrong with them.

I think the earlier version of this same patch had a weakness
that in theory the contents of a stack element may not have been
propagated to memory for a popping thread to read if the thread
that pushed the element is scheduled out before the push function
has finished (or the two threads are running on parallel
CPUs). Even after heavy testing with the original patch on both
ARM and x86 I have not seen this happening, but this new version
should make it sure it does not happen.

Cheers,
  Jyri

Jyri Sarha (1):
  core: New LIFO style flist implementation v2.0

 src/pulsecore/flist.c |  215 ++++++++++++++-----------------------------------
 1 files changed, 61 insertions(+), 154 deletions(-)



More information about the pulseaudio-discuss mailing list