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

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Jan 10 05:45:57 EST 2007


At Wednesday 10/1/2007 07:14, Hendrik van Rooyen wrote:

>I would like to do the following as one atomic operation:
>
>1) Append an item to a list
>2) Set a Boolean indicator

Wouldn't a thread.Lock object serve your purposes?


-- 
Gabriel Genellina
Softlab SRL 


	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Python-list mailing list