2 #ifndef _EasyThreads_h_
3 #define _EasyThreads_h_
24 int ParRun(
void *(*start)(
void *), std::vector <void *> arg);
25 int ParRun(
void *(*start)(
void *),
void **arg);
29 static void Decompose(
int n,
int size,
int rank,
int *offset,
int *length);
39 pthread_attr_t attr_c;
40 pthread_cond_t cond_c;
41 pthread_mutex_t barrier_lock_c;
42 pthread_mutex_t mutex_lock_c;
int GetNumThreads() const