On Tue, 18 Jul 2006, Rafael Garcia-Suarez wrote:

> >         # or
> >         use threads 'exit' => 'threads';
> 
> >     After thread creation
> >         threads->set_thread_exit_only();   # Inside a thread
> >         # or
> >         $thr->set_thread_exit_only();
> 
> Er, set_thread_only_exit($boolean) might be better ?

How about

  $thr->set_attrs( {exit => 'thread_only', foo => 'yes'} );

to allow for arbitrary, individual thread behavior/policy modification
without proliferating methods?  Could die() if user attempted to set a
"readonly" ithread attribute (like context, e.g.).

-Mike

Reply via email to