[asterisk-dev] [asterisk-commits] file: trunk r92206 - /trunk/utils/check_expr.c

Joshua Colp jcolp at digium.com
Mon Dec 10 07:29:47 CST 2007


----- Original Message -----
From: Simon Perreault
[mailto:simon.perreault at viagenie.ca]
To: asterisk-dev at lists.digium.com
Sent:
Mon, 10 Dec 2007 13:01:16 -0400
Subject: Re: [asterisk-dev]
[asterisk-commits] file: trunk r92206 - /trunk/utils/check_expr.c


> On Monday 10 December 2007 11:48:19 SVN commits to the Asterisk project
> wrote:
> > +int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
> > +{
> > +        int ret;
> > +        ret = *p;
> > +        *p += v;
> > +        return ret;
> > +}
> 
> This is not atomic!
> 

Correct, on purpose!

The application in question, check_expr, is not a multithreaded application.

Joshua Colp
Software Developer
Digium, Inc.



More information about the asterisk-dev mailing list