[Zope3-Users] Re: Reportlab threadsafe solution?
chrism at plope.com
Tue Sep 26 09:49:48 EDT 2006
Why not just use a mutex (a recursive lock makes things easier too)?
lock = threading.RLock()
On Sep 26, 2006, at 9:19 AM, Philipp von Weitershausen wrote:
> Jim Washington wrote:
>> I need to produce PDFs with reportlab.
>> reportlab is not threadsafe. (http://two.pairlist.net/pipermail/
>> I think I need a way to queue or generate a "lockfile" on requests
>> for PDFs so that only one-at-a-time is generated.
>> I'm hoping that there is a utility for this already, but search in
>> the source for queue or serialize or lock gets me a lot of stuff
>> that does not seem to relate to what I want.
>> This looks like it would be a relatively simple utility. Has this
>> been done yet? Any hints?
> You may want to look at zc.queue: http://svn.zope.org/zc.queue/
> Zope3-users mailing list
> Zope3-users at zope.org
More information about the Zope3-users