Lines Matching refs:level
125 void child_thread(int i, int level)
127 //cout << "child_thread " << i << " at level " << level << " called at " << sc_time_stamp() << endl;
128 if (level > 0 && !given_birth[i])
130 sc_spawn(sc_bind(&Top::child_thread, this, index++, level-1));
131 sc_spawn(sc_bind(&Top::child_method, this, index++, level-1), "h", &opt);
144 //cout << "child_thread " << i << " at level " << level << " awoke at " << sc_time_stamp() << endl;
153 //cout << "child_thread " << i << " at level " << level << " caught at " << sc_time_stamp() << endl;
164 void child_method(int i, int level)
166 //cout << "child_method " << i << " at level " << level << " at " << sc_time_stamp() << endl;
167 if (level > 0 && !given_birth[i])
169 sc_spawn(sc_bind(&Top::child_thread, this, index++, level-1));
170 sc_spawn(sc_bind(&Top::child_method, this, index++, level-1), "m", &opt);