10 pthread_mutex_t threadtable;
12 pthread_mutex_t gclock;
13 pthread_mutex_t gclistlock;
14 pthread_cond_t gccond;
16 void initializethreads() {
17 pthread_mutex_init(&threadtable,NULL);
19 pthread_mutex_init(&gclock, NULL);
20 pthread_mutex_init(&gclistlock, NULL);
21 pthread_cond_init(&gccond, NULL);
24 void initthread(struct ___Thread___ * ___this___) {
26 struct ___Thread______staticStart____L___Thread____params p={1, NULL, ___this___};
27 ___Thread______staticStart____L___Thread___(&p);
29 ___Thread______staticStart____L___Thread___(___this___);
31 pthread_mutex_lock(&threadtable);
33 pthread_mutex_unlock(&threadtable);
36 void CALL01(___Thread______nativeCreate____, struct ___Thread___ * ___this___) {
38 pthread_mutex_lock(&threadtable);
40 pthread_mutex_unlock(&threadtable);
41 pthread_create(&thread, NULL,(void * (*)(void *)) &initthread, VAR(___this___));