On 2011-02-07, Jason Rennie wrote:
> d = sem.acquire()
> d.addCallback(doSerialStuffAndRelease)

Shouldn't this be spelled:

d = sem.run(doSerialStuff)

Which does acquasition and release of the sempahore properly?

-- 
Regards,
Stephen Thorne
Development Engineer
Netbox Blue

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

Reply via email to