Is there a way to protect a piece of critical code?

Hendrik van Rooyen mail at microcorp.co.za
Thu Jan 11 00:41:12 EST 2007



"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote:


> "Hendrik van Rooyen" <mail at microcorp.co.za> writes:
> > I would like to do the following as one atomic operation:
> > 
> > 1) Append an item to a list
> > 2) Set a Boolean indicator
> 
> You could do it with locks as others have suggested, but maybe you
> really want the Queue module.
> 
> 
Please see my reply to Robert - am aware of queue, using it in fact.




More information about the Python-list mailing list