[sv-ec] disabling fork join threads under task

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Tue Jul 07 2009 - 07:41:40 PDT
See below code - in time there is task foo executed - it starts a processes
by fork..join_none. foo finishes in time 0 but process ffrom fork is still
pending. In time 5 i'm disabling task foo - should it stop also pending
process started by fork..join_none in task foo - I cannot found anything on
that in LRM - and it is not so obvious.
 
 

module top;
 task automatic  foo;
  int a;//a is automatic!!!
  fork
   #20 $display($time, a);
  join_none
 endtask
 
 initial begin
  foo();
 end
        initial #5  disable foo;
endmodule


 
DANiel

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jul 7 07:45:37 2009

This archive was generated by hypermail 2.1.8 : Tue Jul 07 2009 - 07:46:31 PDT