in reply to Re^8: Utter FUD!
in thread is ||= threadsafe?
You don't appear to fall into the category I mentioned who would not call it an alias. Perl magic uses the magic SV as a buffer between whatever accesses the SV and the magic underneath; the SV will have as many usual fields as necessary for this. As an example, here a shared string has two completely separate string buffers:
Re: fork, I think you are willfully misunderstanding what Tye meant by mentioning fork, so I don't care to argue.perl -wle'use B; use threads; use threads::shared; my $s:shared; $s = +"123456"; my$t=threads->new(sub{$s}); use Devel::Peek; Dump $s; Dump +${ bless(\(my$x=is_shared($s)), "B::SV")->object_2svref }; $t->join() +'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^10: Utter FUD!
by BrowserUk (Patriarch) on Oct 27, 2010 at 06:50 UTC | |
by ysth (Canon) on Oct 27, 2010 at 07:47 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2010 at 08:14 UTC | |
by ysth (Canon) on Oct 27, 2010 at 15:23 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2010 at 16:41 UTC | |
| |
by BrowserUk (Patriarch) on Oct 27, 2010 at 08:04 UTC | |
by ikegami (Patriarch) on Oct 27, 2010 at 07:25 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2010 at 07:37 UTC | |
by ikegami (Patriarch) on Oct 28, 2010 at 00:03 UTC | |
by tye (Sage) on Oct 28, 2010 at 21:36 UTC | |
| |
by BrowserUk (Patriarch) on Oct 28, 2010 at 08:11 UTC | |
|