LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: David Nicol Date: Thu Aug 7 13:04:24 2008 Subject: Re: Devel::Callsite is a better instance key than join $;,caller()[1,2]
On Thu, Aug 7, 2008 at 11:01 AM, Ted Zlatanov <tzz@lifelogs.com> wrote: > I plan to add the interpreter (Perl context, actually) address when I > get a chance, Ben Morrow was kind enough to point out what I was > missing. Then it will be more correct than the current version. Does > anyone know if the context address is unique in mod_perl and with > threads? If not, what can I do? > > Ted it seems like if it isn't, extending the instance key using the pid and tid would be best made the application developers problem. Suggesting an approach in the Devel::Callsite documentation by providing example code that produces an instance key that will be valid in forking and threading environments, would make more sense IMO than spoiling Devel::Callsite's focus. -- "don't let the perfect become the enemy of the good" -- some politician on CNN
| Navigate in group perl.module-authors at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |