bugs in my locking discipline
[IRC.git] / Robust / src / Runtime / thread.c
index 5e3b27cc8af8227d6a36584fb9898a01ca3a803c..99e79cef59514d75bee960580ca4e2870838388e 100644 (file)
@@ -31,6 +31,9 @@ void initthread(struct ___Thread___ * ___this___) {
   pthread_mutex_lock(&threadtable);
   threadcount--;
   pthread_mutex_unlock(&threadtable);
+  pthread_mutex_lock(&gclistlock);
+  pthread_cond_signal(&gccond);
+  pthread_mutex_unlock(&gclistlock);
 }
 
 void CALL01(___Thread______nativeCreate____, struct ___Thread___ * ___this___) {