in reply to Re^2: Debugging lock ownership
in thread Debugging lock ownership
The low level hacks are found here
I was hoping Devel::Peek might reveal something but it doesn't :)
http://cpansearch.perl.org/src/JDHEDDEN/threads-shared-1.33/shared.xs says$ perl -Mthreads -MDevel::Peek -e"my $locked=1; my $unlocked=1; Dump($ +unlocked); lock($locked); Dump($locked)" SV = IV(0x98a490) at 0x98a494 REFCNT = 1 FLAGS = (PADMY,IOK,pIOK) IV = 1 SV = IV(0x3e8c10) at 0x3e8c14 REFCNT = 1 FLAGS = (PADMY,IOK,pIOK) IV = 1
so you might have luck using Variable::Magic to peek at the magic/* User-level locks: This structure is attached (using ext magic) to any shared SV that
|
|---|