On Behalf Of Dan Eloff
Sent: Friday, November 14, 2008 9:35 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Interlocked methods and IronPython
... sometimes. The reason it seems to work is that python integers are
immutable and the safe count is always zero :) You could assign back
to
... sometimes. The reason it seems to work is that python integers are
immutable and the safe count is always zero :) You could assign back
to SafeCount the result of the increment, but the assignment isn't
necessarily safe. I guess these kinds of things either need to be
written in C#, or use a Mo
I've often wondered if the CLR Interlocked methods work with
IronPython. It seems that Interlocked.Increment works fine with module
globals (see attached script.) Whether it works fine in general I
don't know. Does anybody know anything about this?
-Dan
>ipy interlockedinc.py
UnsafeCount: -32081