mod_python at mikebell.org
mod_python at mikebell.org
Tue Jun 24 21:48:09 EST 2003
On Wed, Jun 25, 2003 at 12:40:41AM -0400, Gregory (Grisha) Trubetskoy wrote: > To quote Guido - "Good question!" > > (here is the link > http://mail.python.org/pipermail/python-dev/2001-August/016772.html) For anyone who's curious, you _can_ do it by using fcntl's file locking before making any changes to your shared memory region, but this means you only get one lock per file. So if you've got one variable, just lock the file you're mmaping. If you've got dozens, you're going to need a lot of lockfiles.
|