Searched refs:from_p (Results 1 - 1 of 1) sorted by relevance

/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_cor_pthread.cpp243 sc_cor_pthread* from_p = active_cor_p; local
246 DEBUGF << from_p << ": switch to " << to_p << std::endl;
247 if ( to_p != from_p )
251 pthread_mutex_lock( &from_p->m_mutex );
253 pthread_cond_wait( &from_p->m_pt_condition, &from_p->m_mutex );
254 pthread_mutex_unlock( &from_p->m_mutex );
257 active_cor_p = from_p; // When we come out of wait make ourselves active.
258 DEBUGF << from_p << " restarting after yield to " << to_p << std::endl;

Completed in 5 milliseconds