A question about disable ... fork

In reply to Tudor Timi:

Hi, Tim,

Thanks for your reply, a quick question is that, what happened if we are trying to terminates threads which all surrounded via fork … join_none ?

For example :


fork 
  fork
    task1
  join_none
 
  for loop begin
    fork
      task2
    join_none
  for loop end     
                                                                                                                                                          
  fork
    task3
  join_none                                                                                                                                                                                                                                                                                                             join // how about if we change this to join_none ?
 
@reset event 
disable fork  

Can disable fork still kill all of threads above ? Besides, how about if we change the final join to join_none ?

Thanks,

WangYang