Sorry, I don&#39;t think I understand the example either---looks to me like you&#39;re reimplementing a semaphore.  Stephen&#39;s right about run().<div><br>Cheers,</div><div><br>Jason<br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 11:37 PM, Jason Heeris <span dir="ltr">&lt;<a href="mailto:jason.heeris@gmail.com">jason.heeris@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 8 February 2011 12:22, Stephen Thorne &lt;<a href="mailto:stephen@thorne.id.au">stephen@thorne.id.au</a>&gt; wrote:<br>

&gt; I totally misread your example, and I appologise. I&#39;ve read it now and<br>
&gt; it looks fine to me. The only commend I&#39;d make is that you probably want<br>
&gt; DeferredLock not DeferredSempahore if this is serialised access.<br>
<br>
</div>No need to apologise, happens to anyone :) And thanks for the pointer<br>
to DeferredLock, somehow I totally missed that.<br>
<br>
Cheers,<br>
<font color="#888888">Jason<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jason Rennie<br>Research Scientist, ITA Software<br>617-714-2645<br><a href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br><br>
</div>