in reply to Re^3: thread-safe mmap module ?
in thread thread-safe mmap module ?

You are hitting exactly the reason why I opened this node (smiles) - If I put Cache::FastMmap::WithWin32 in the apache startup.pl I'll hit this piece of code from the module:
sub CLONE {
  die "Cache::FastMmap::WithWin32 does not support threads sorry";
}
Damned I said ! Can't find a win32 thread-safe mmap alternative since then.

Replies are listed 'Best First'.
Re^5: thread-safe mmap module ?
by kennethk (Abbot) on Feb 21, 2009 at 23:06 UTC

    Let's see if I can come up with something you don't already know this time...

    The issue with support on Cache::FastMmap is likely that it uses unsupported-on-Windows C-code to handle file locking/unlocking. In the "Modules like this" section of the documentation, it references Cache::Mmap, which is a pure Perl solution, and thus should respect (to the extent possible) Win32 behaviors. A quick glance at the source suggests it should be fine with threading.

      Yep - googling on it I see that Cache:Mmap might work, and if not IPC::Mmap::Win32 name suggests it will -; I'll give it a try asap, crossing fingers about performance.

      Thanks to all of you !