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

Dinesh Nair dinesh at alphaque.com
Mon Jan 2 01:31:02 MST 2006



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.

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



More information about the asterisk-dev mailing list