Re: Pool elements must be thread safe?
"Jonathan Ellis" <[email protected]> Thu, 05 Apr 2007 15:19:20 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
pool is basically a dict with extra logic so it can still function (with greatly reduced performance) in cgi mode. but in threaded server mode, it's just a dict. so individual accesses and assignments are atomic, but if you want to get-and-modify atomically you need to do your own locking. -Jonathan On Thu, 5 Apr 2007 11:06:15 -0400, "Philip Semanchuk" <[email protected]> said: > Hi all, > I have Spyce proxied behind Apache with concurrency = 'threading'. If I > was to use Spyce's pool module to store data accessible to all of > Spyce, I guess I'd have to pay attention to the thread safety of my > code that interacts with the pool data, yes? > > Thanks > Philip > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Spyce-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/spyce-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV