[ZODB-Dev] Thread Safety, Reaimed
Norfleet, Sheppard S.
sheppard.norfleet at ngc.com
Thu Aug 7 11:44:26 EDT 2003
Stefan,
Thanks for the response.
I tried that, but I get an UnboundLocalError when I try to reference the
lock from the Zope Object.
Regards,
Shep
-----Original Message-----
From: Stefan H. Holek [mailto:stefan at epy.co.at]
Sent: Thursday, August 07, 2003 11:18 AM
To: Norfleet, Sheppard S.
Subject: Re: [ZODB-Dev] Thread Safety, Reaimed
You could create the lock at module level and not inside a Zope object.
Stefan
--On Donnerstag, 07. August 2003 07:46 -0700 "Norfleet, Sheppard S."
<sheppard.norfleet at ngc.com> wrote:
> I say its thread safe, but actually after a period of time it stops being
> so. Since the original presentation thread has joined, I am wondering
> that when another presention thread is created that references the
> product, that Zope is creating a whole new RLock. If this is the case,
> how would I go about creating a singleton RLock object?
>
> I was thinking I could modify the Zope code and store my lock in an object
> that is always available and never dies till Zope dies. Is that object
> the application object? I realize its an ugly solution, but it would
> work.
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
More information about the ZODB-Dev
mailing list