[Mono-dev] Interlocked.CompareExchange on 32bits with 64bits values
vargaz at gmail.com
Sat Jun 13 11:34:43 EDT 2009
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.
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
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list