diff options
Diffstat (limited to 'libguile/pthread-threads.c')
-rw-r--r-- | libguile/pthread-threads.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libguile/pthread-threads.c b/libguile/pthread-threads.c index 58410db16..8aa0e6fca 100644 --- a/libguile/pthread-threads.c +++ b/libguile/pthread-threads.c @@ -142,6 +142,23 @@ scm_i_plugin_mutex_unlock (scm_t_mutex *mx) pthread_mutex_unlock (&mutex_mutex); return 0; } + +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); +} + +int +scm_i_plugin_cond_wait (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); +} + #endif /* The following section belongs in threads.c, or rather |