[Python-ideas] Adding shm_open to mmap?
shibturn
shibturn at gmail.com
Wed Feb 15 12:16:46 CET 2012
On 15/02/2012 4:10am, Mike Meyer wrote:
> I'd prefer to provide shm_open on Windows if at all possible. The
> "sorta-kinda" bothers me. That would also allow for an application to
> exit and then resume work stored in a mapped segment (something I've
> done before). However, setting this up on Windows isn't something I
> can do.
Maybe creating a file using CreateFile and FILE_ATTRIBUTES_TEMPORARY
would have a similar effect - it hints to the system to avoid flushing
to the disk. (os.open and O_TEMPORARY would not work because that also
causes the file to be removed when all handles are closed.)
sbt
More information about the Python-ideas
mailing list