On Tue, Nov 10, 2009 at 11:02:24AM -0300, Felipe Sateler wrote: > > The generic solution is the use gcc builtins. This requires gcc-4.1 or > > newer and at least some kind of underlying hardware atomic ops:
> > __sync_add_and_fetch (__mem, __val); > > Note that this isn't reliable in all arches. ACK. It would be trial and error or require platform testing upfront. On Sparc, the __sync_bool_compare_and_swap atomic op is only supported with -mcpu=v9. Same holds true for __sync_add_and_fetch. This is a pure lack of hardware support, think of SSE instructions not available on i486. The list of options is problably like this: 1. Only require libjack-dev on amd64, i386 and powerpc 2. Use pulseuadio 3. Patch the source with error-prone builtin atomics I suggest to use 1, 2 or 1 and 2. Since snd isn't timing critical, there's not really a need for libjack. Pulseaudio would be sufficient. HTH -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org