Martijn Pieters wrote:

> 
> But because _v_* variables don't get pickled, another thread will never
> see them. If you want non-persisting (volatile) variables shared between
> threads, you'll have to devise your own mechanism for assuring the
> thread-safety of those variables.

Or, instead of devising your own mechanism, you can borrow someone else's:

   http://www.handshake.de/~dieter/pyprojects/zope/SharedResource.html


Thanks Dieter!

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to