LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Ben Morrow Date: Sun Aug 10 17:26:48 2008 Subject: Re: Devel::Callsite is a better instance key than join $;,caller()[1,2]
Quoth davidnicol@gmail.com ("David Nicol"):
> On Fri, Aug 8, 2008 at 5:41 PM, Ben Morrow <ben@morrow.me.uk> wrote:
> > [the interpreter address is] more unique than either pid or
> > tid, and actually reflects 'Perl-level thread of control'.
>
> I'm a little surprised; I thought that the interpreter address would
> remain the same in both processes after a 'nix fork.
Err, yes, it will. I assumed when Ted mentioned $$ he was talking about
Win32's pseudo-fork, which will create a new interpreter with a new
address.
If you want calls to every(5) to only return true once every five times
even across forked processes, your going to need some sort of IPC,
obviously.
Ben
--
Although few may originate a policy, we are all able to judge it.
Pericles of Athens, c.430 B.C.
ben@morrow.me.uk
| 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 |