From: Titus B. <ti...@ca...> - 2002-11-08 21:25:07
|
p.s. Make sure you use the latest CVS code; all code up until then had problems with multithreading under medium or high loads. You'll need AOLserver 3.5... On Fri, Nov 08, 2002 at 02:14:37PM -0500, cmulcahy wrote: -> Titus, -> -> Suppose I want a persistent resource that all pywx pages can access. -> -> Say I run pywx in single-interpreter mode. -> At startup I have the interpreter import a few modules written be me. -> -> In these modules I define resource pools ( containing database handles for -> example ) pseudo-public methods ( pseudo since you can't create private -> name-space in python such that I know ) to access them, and mutexes ( -> thread.allocate_lock() works? ) to synchronize said access. -> -> I then access in the namespace of these modules only those functions that I -> have written with public-safety in mind. -> -> Is this the general idea? -> -> -> ------------------------------------------------------- -> This sf.net email is sponsored by: See the NEW Palm -> Tungsten T handheld. Power & Color in a compact size! -> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en -> _______________________________________________ -> PyWX-discuss mailing list -> PyW...@li... -> https://lists.sourceforge.net/lists/listinfo/pywx-discuss |