Re: thread shows wrong results for calculation



John <johngrn19@xxxxxxxxx> writes:
Do I really need synchronization?

Yes.

I am not changing the values in the struct. I am only reading them.

Presumably you are changing them in some other thread.

--
http://www.greenend.org.uk/rjk/
.