Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^4: thread-safe mmap module ?

by jdd (Acolyte)
on Feb 21, 2009 at 22:55 UTC ( #745573=note: print w/replies, xml ) Need Help??

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 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 !

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://745573]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-01-25 03:30 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (65 votes). Check out past polls.