[Asterisk-Dev] Race issue in channel.c involving uniqueint on Asterisk 1.2.1

David Woodhouse dwmw2 at infradead.org
Mon Jan 2 21:32:46 MST 2006


On Fri, 2005-12-30 at 09:02 -0600, Tilghman Lesher wrote:
> > FreeBSD (and i suppose linux as well) has example code
> > for i386 and others in the machine/atomic.[ch] files
> 
> This appears to be FreeBSD-specific (or BSD-specific).  There are
> no such macros on Linux.

Well, there's asm/atomic.h which might compile on some architectures,
but it's likely to be broken. Do not make the mistake of using it -- if
it does compile, you may well get non-atomic behaviour from it.

-- 
dwmw2




More information about the asterisk-dev mailing list