oooh!

thanks.  I'm going to try and reimplement with that right now!

On Sep 26, 2012, at 5:09 PM, Stephen Thorne wrote:

> This is a better way of using DeferredSemaphore:
> 
>    def queue_thread( self , data=None ):
>        self.queued_data= data
>        return self.semaphoreService.run( self._T_to_thread )
> 
> It handles acquisition and release for you. This will avoid any code
> path that might result in a double-release.


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to