Sorry, I don't think I understand the example either---looks to me like you're reimplementing a semaphore. Stephen'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"><<a href="mailto:jason.heeris@gmail.com">jason.heeris@gmail.com</a>></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 <<a href="mailto:stephen@thorne.id.au">stephen@thorne.id.au</a>> wrote:<br>
> I totally misread your example, and I appologise. I've read it now and<br>
> it looks fine to me. The only commend I'd make is that you probably want<br>
> 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>