Python threading (was: Re: global interpreter lock not working as it should)
Martin v. Loewis
martin at v.loewis.de
Tue Aug 6 04:53:48 EDT 2002
a-steinhoff at web.de (Armin Steinhoff) writes:
> 'Aha. You've slightly misunderstood' what I wrote. I mentioned that a
> code sequence like
>
> success = thelock->locked == 0;
> if (success) thelock->locked = 1;
>
> done in critical section is plain nonsense.
I still don't understand why you think so. How would you change that
sequence, so that it still has the same effect?
Regards,
Martin
More information about the Python-list
mailing list