Boost logo

Boost Users :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-12-28 04:47:07


Sebastian Redl wrote:
> while(*flag) {
> // Work
> }

What makes you believe, you need not protect access to the shared flag?
It would be ok, if you knew flag is atomic, but in general you will
create non portable code this way.

Roland


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net