> > This raise the following question : Is a field variable in a class
> > aligned in memory ? (OnMyEvent variable is just a field variable).
>
> I don't know, and it also raises a second question:

> > Reads and writes to variables of
> > other sizes are not guaranteed to be atomic on any platform."
>
> Are i.e. reads/writes of Byte-variables not atomic in any Windows
> version, and if yes what versions are they? If that was true for
> 32-Bit Win I would have to change plenty of code :(

Anything shorter than a 32 bit integer and properly aligned is always
atomic. As a byt can't be split, it is always read/written atomicly.
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to