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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jan 6 13:35:46 MST 2006


On Tue, Jan 03, 2006 at 04:32:46AM +0000, David Woodhouse wrote:
> 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.

Are we talking about user-space code or kernel-space code? Aren't those 
headers are for use by kernel code on Linux?

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list