Lines Matching refs:sc_cor_pthread
22 sc_cor_pthread.cpp -- Coroutine implementation with pthreads.
33 #include "sysc/kernel/sc_cor_pthread.h"
49 if (0) std::cout << "sc_cor_pthread.cpp(" << __LINE__ << ") "
60 static sc_cor_pthread* active_cor_p=0; // Active co-routine.
63 static sc_cor_pthread main_cor; // Main coroutine.
67 // CLASS : sc_cor_pthread
74 sc_cor_pthread::sc_cor_pthread()
77 DEBUGF << this << ": sc_cor_pthread::sc_cor_pthread()" << std::endl;
85 sc_cor_pthread::~sc_cor_pthread()
87 DEBUGF << this << ": sc_cor_pthread::~sc_cor_pthread()" << std::endl;
99 void* sc_cor_pthread::invoke_module_method(void* context_p)
101 sc_cor_pthread* p = (sc_cor_pthread*)context_p;
102 DEBUGF << p << ": sc_cor_pthread::invoke_module_method()" << std::endl;
175 sc_cor_pthread* cor_p = new sc_cor_pthread;
216 &sc_cor_pthread::invoke_module_method, (void*)cor_p ) )
243 sc_cor_pthread* from_p = active_cor_p;
244 sc_cor_pthread* to_p = (sc_cor_pthread*)next_cor_p;
267 sc_cor_pthread* n_p = (sc_cor_pthread*)next_cor_p;
289 // $Log: sc_cor_pthread.cpp,v $