[Mono-dev] Interlocked.CompareExchange on 32bits with 64bits values
Zoltan Varga
vargaz at gmail.com
Sat Jun 13 11:34:43 EDT 2009
Hi,
It is only safe with regards to itself, i.e. if all threads use the
Interlocked operations to
access the value, then it is atomic.
Zoltan
2009/6/13 Jérémie Laval <jeremie.laval at gmail.com>
> Hey folks,
>
> Is the long overload of Interlocked.CompareExchange safe on 32bits hardware
> with Mono (as with the couple Interlocked.Increment + Interlocked.Read for
> example) ?
>
> Thanks in advance.
>
> --
> Jérémie Laval
> jeremie.laval at gmail.com
> http://garuma.wordpress.com
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090613/f9850f9b/attachment.html
More information about the Mono-devel-list
mailing list