Fawzi Mohamed wrote: > you don't need a barrier, you need a volatile statement to avoid > compiler optimizations That depends on the platform. On contemporary Intel machines I agree there's no need for a barrier. Andrei