[Mono-dev] Interlocked
Vladimir Giszpenc
vladimir.giszpenc at gmail.com
Thu May 24 11:17:06 EDT 2007
Hi,
This is probably a question for Microsoft, but since I am using Mono I
will ask you fine folks. System.Threading.Interlocked.Read()
addresses 64 bit atomicity. If I use the shortcut "int", is it
System.Int32 or System.Int64 depending on the architecture the code is
compiled on? If that is the case, shouldn't I be able to use the
Read() with ints as well as long? Or is reading any kind of int
always an atomic operation? I have never even been near a 64 bit
machine, but I feel I should write code that is portable.
Thanks for your patience,
Vlad
More information about the Mono-devel-list
mailing list