Lines Matching defs:thread_h
112 sc_simcontext::execute_thread_next( sc_thread_handle thread_h )
114 m_runnable->execute_thread_next( thread_h );
130 // | thread_h -> thread to be executed.
134 sc_simcontext::preempt_with( sc_thread_handle thread_h )
144 if ( thread_h->next_runnable() != NULL )
145 remove_runnable_thread( thread_h );
174 DEBUG_MSG( DEBUG_NAME, thread_h, "preempting method with thread" );
175 set_curr_proc( (sc_process_b*)thread_h );
176 m_cor_pkg->yield( thread_h->m_cor_p );
178 DEBUG_MSG(DEBUG_NAME, thread_h, "back from preempting method w/thread");
190 else if ( active_p != thread_h )
192 DEBUG_MSG( DEBUG_NAME, thread_h,
195 execute_thread_next( thread_h );
207 DEBUG_MSG(DEBUG_NAME,thread_h,"self preemption of active thread");
208 execute_thread_next( thread_h );
230 sc_simcontext::push_runnable_thread( sc_thread_handle thread_h )
232 m_runnable->push_back_thread( thread_h );
237 sc_simcontext::push_runnable_thread_front( sc_thread_handle thread_h )
239 m_runnable->push_front_thread( thread_h );
260 sc_thread_handle thread_h = m_runnable->pop_thread();
261 if( thread_h == 0 ) {
265 set_curr_proc( (sc_process_b*)thread_h );
266 return thread_h;
278 sc_simcontext::remove_runnable_thread( sc_thread_handle thread_h )
280 m_runnable->remove_thread( thread_h );