[Twisted-Python] DeferredSemaphore - action on acquire and release

Jason Rennie jrennie at gmail.com
Tue Feb 8 08:14:07 EST 2011


Sorry, I don't think I understand the example either---looks to me like
you're reimplementing a semaphore.  Stephen's right about run().

Cheers,

Jason

On Mon, Feb 7, 2011 at 11:37 PM, Jason Heeris <jason.heeris at gmail.com>wrote:

> On 8 February 2011 12:22, Stephen Thorne <stephen at thorne.id.au> wrote:
> > I totally misread your example, and I appologise. I've read it now and
> > it looks fine to me. The only commend I'd make is that you probably want
> > DeferredLock not DeferredSempahore if this is serialised access.
>
> No need to apologise, happens to anyone :) And thanks for the pointer
> to DeferredLock, somehow I totally missed that.
>
> Cheers,
> Jason
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



-- 
Jason Rennie
Research Scientist, ITA Software
617-714-2645
http://www.itasoftware.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110208/5f5cf54c/attachment.htm 


More information about the Twisted-Python mailing list