Fix...
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Mon, 16 Dec 2002 21:02:37 +0000 (21:02 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Mon, 16 Dec 2002 21:02:37 +0000 (21:02 +0000)
libguile/pthread-threads.c

index 8aa0e6f..1e456e7 100644 (file)
@@ -147,16 +147,16 @@ int
 scm_i_plugin_cond_wait (scm_t_cond *c, scm_t_mutex *mx)
 {
   mutex *m = (mutex *) mx;
-  return pthread_cond_wait ((pthread_cond_t *) c, m->mutex);
+  return pthread_cond_wait ((pthread_cond_t *) c, &m->mutex);
 }
 
 int
-scm_i_plugin_cond_wait (scm_t_cond *c,
+scm_i_plugin_cond_timedwait (scm_t_cond *c,
                        scm_t_mutex *mx,
                        const struct timespec *t)
 {
   mutex *m = (mutex *) mx;
-  return pthread_cond_timedwait ((pthread_cond_t *) c, m->mutex, t);
+  return pthread_cond_timedwait ((pthread_cond_t *) c, &m->mutex, t);
 }
 
 #endif