Re: [RFC] Stringify a thread

[email protected] ("Joshua ben Jore") Thu, 5 Oct 2006 11:15:02 -0500
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <[email protected]>
On 10/5/06, Rafael Garcia-Suarez <[email protected]> wrote:
> On 05/10/06, Joshua ben Jore <[email protected]> wrote:
> > Better would be letting the stringified object still look like a
> > stringified object. Perhaps you add your info on the end like C<<
> > ',tid=' . $obj->tid  >>. I get a lot of mileage out of noticing what
> > things look like when printed. It's unusual when an object doesn't
> > stringify to something to that looks like an object.
>
> That's a nice idea, assuming stringification of threads will be mostly
> used for debugging and trace purposes.

It also gets Jerry's desired uniqueness property. I guess. He said
->tid was unique and I believe him. I don't know a thing about threads
except that they make poking at optrees annoying.

Josh