in reply to RE (4): Simple Locking
in thread Simple Locking

You say mod_perl here, but what you really mean is Apache::Registry, just one of the many mod_perl modules, and you're relying on the trick that your code is getting wrapped into a giant subroutine, which may not necessarily be true in future implementations of Apache::Registry.

Your trick doesn't work for mod_perl handlers in general, hence my warning on the original code.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE (tilly) 6: Simple Locking
by tilly (Archbishop) on Aug 22, 2000 at 16:50 UTC
    Didn't know that. (I have mentioned I don't do much web stuff? Bad excuse, I know...)

    In general though, couldn't the above approach at least simplify the necessary logic somewhat? Particularly with functions with one entry and multiple exit points...?