Elizabeth Mattijsen wrote:
> 
> Thread::Use - use a module inside a thread only
> 
> =head1 SYNOPSIS
> 
>     use Thread::Use;
> 
>     threads->new( sub {
>      useit Module;
>      useit Module qw(parameters);
> 
>      noit Module;
>      noit Module qw(parameters);
>     } );

OK, I looked a bit at this, and I must confess that I don't
understand how/why it works.

Looks like stashes are not shared between threads. How
is this related to saving memory ? (for modules that don't
export lots of symbols into the caller's namespace).
Does the module gets unloaded in some way when the thread
ends ?

(BTW your module doesn't provide an interface equivalent to
        use Foo ();
        no Bar ();
--that doesn't call import().)

Reply via email to