Perl's locks are recursive, unless things have really changed, so it's safe for one thread to get the same lock several times, in which case the lock will be held until the last lock goes out of scope.
In reply to Re: lock() - dynamic or lexical?
by Elian
in thread lock() - dynamic or lexical?
by nothingmuch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |