Re: [IronPython] Interlocked methods and IronPython

2008-11-14 Thread Dino Viehland
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

Re: [IronPython] Interlocked methods and IronPython

2008-11-14 Thread Dan Eloff
... 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