[Zope3-Users] Re: Reportlab threadsafe solution?

Chris McDonough 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:
>> Hi
>> I need to produce PDFs with reportlab.
>> reportlab is not threadsafe. (http://two.pairlist.net/pipermail/ 
>> reportlab-users/2006-June/005037.html)
>> 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/ 
> trunk/src/zc/queue/queue.txt?rev=67933&view=auto
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

More information about the Zope3-users mailing list