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

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Dec 30 08:02:02 MST 2005


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.

-- 
Tilghman



More information about the asterisk-dev mailing list