[interfacekit] Re: BLocker
- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Mon, 01 Sep 2003 17:25:08 +0200 CEST
"burton666@xxxxxxxxx" <burton666@xxxxxxxxx> wrote:
> > No no, atomic_add() returns the old value of fBenaphoreCount and
> > at the same time, atomically sets it to another value (adds one).
> > The "oldBenaphoreCount" variable won't be changed anymore - it
> > reflects
> > the state at the time atomic_add() was executed, and we are only
> > interested in that state (if it has changed in the meantime, the
> > other
> > thread will block, but we don't have to).
> Ah, ok. Thanks :) I wasn't so sure, that's why I added the ? at the
> end of
> the question :)
> Sorry to have bothered :)
No problem! Since you are not a complete newbie, I think I can safely
say: the more questions, the better ;-))
Code reviews and even dumb questions (no offense here ;-)) are mostly a
good thing to improve code quality.
Adios...
Axel.
- References:
- [interfacekit] Re: BLocker
- From: burton666@xxxxxxxxx
Other related posts:
- » [interfacekit] Re: BLocker
- » [interfacekit] Re: BLocker
- » [interfacekit] Re: BLocker
- » [interfacekit] Re: BLocker
- [interfacekit] Re: BLocker
- From: burton666@xxxxxxxxx