[Asterisk-Dev] Race issue in channel.c involving uniqueint on
Asterisk 1.2.1
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Mon Jan 2 15:57:20 MST 2006
On Monday 02 January 2006 02:31, Dinesh Nair wrote:
> On 12/30/05 23:02 Tilghman Lesher said the following:
> > On Friday 30 December 2005 07:12, Luigi Rizzo wrote:
> >>I think the proper course of action is to wrap the atomic ops
> >>into macros, and then let the common header implement the
> >>locking in the proper way, with fallback to the above
> >>sequence only for unknown architectures.
> >>
> >>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.
>
> but as luigi pointed out, these are architecture specific, so with
> linux also being used on the x86 class of processors, porting these
> freebsd constructs over shouldnt be too difficult. or so i think.
Patches are welcome on http://bugs.digium.com
--
Tilghman
More information about the asterisk-dev
mailing list