in reply to (ithreads) :locked subs

I've just submitted a documentation patch for this to p5p, so at least the documentation will clearly state that the "locked" attribute is for 5.005 threads only.

Still looking at a way to have Perl bomb at compilation when using the "locked" attribute in ithreads. Even if I would find it, I doubt whether Jarkko will allow it this late in the release game ;-(

Liz

Update:
I've just submitted a patch to p5p that will make:

sub a : locked {}
die at compilation time with:
Invalid CODE attribute (with ithreads): locked at line ....
if your Perl was compiled with ithreads support. As this (small) change to toke.c broke quite a number of tests when testing a threaded perl, I needed to patch 5 test-files to fix the errors. Therefore, I'm doutbful whether it will get included in 5.8.1.

Update:
The documentation patch made it into 5.8.1, the patch that would make using :locked a compile error, didn't.