Quoth [EMAIL PROTECTED] (Ted Zlatanov):
> You're probably right.  I was thinking as a user of the module (with
> Every.pm), thanks for pointing this out.
> 
> From thrtut, it seems that threads->self()->tid() will return the thread
> ID, and of course $$ is the PID.  Is there a one-liner that will DTRT
> whether threads are loaded or not?  I couldn't find one, so the usage
> example may have to be a little more complex.

Just use the interpreter address: it's more unique than either pid or
tid, and actually reflects 'Perl-level thread of control'. I would say
that a second function in D::C (what, two whole functions in one module?
Shocking!) to return the interpreter address would be the way to go.

Ben

-- 
I touch the fire and it freezes me,                      [EMAIL PROTECTED]
I look into it and it's black.
Why can't I feel? My skin should crack and peel---
I want the fire back...                     BtVS, 'Once More With Feeling'

Reply via email to