16 #ifndef SSTMAC_SOFTWARE_THREADING_THREADING_PTHREAD_H_INCLUDED 17 #define SSTMAC_SOFTWARE_THREADING_THREADING_PTHREAD_H_INCLUDED 22 #ifdef SSTMAC_HAVE_PTHREAD 29 #ifdef SSTMAC_HAVE_PTHREAD 32 struct threadcontext_t
41 class threading_pthread :
public threading_interface
44 threadcontext_t context_;
49 threading_pthread(
int thread_id,
int nthread);
54 init_context_common(threadcontext_t &t);
70 threadcontext_t *context;
72 (*f)(
void*),
void *a, threadcontext_t *c) {
79 static std::vector<pthread_mutex_t> context_switch_mutexes;
82 threading_interface* copy() {
83 return new threading_pthread(thread_id_, nthread_);
88 start_context(
int physical_thread_id,
void *stack,
size_t stacksize,
void 89 (*func)(
void*),
void *args, threading_interface *yield_to);
94 complete_context(threading_interface *to);
98 swap_context(threading_interface *to);
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...