mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 06:20:23 +02:00
Fix...
This commit is contained in:
parent
6da2dfc4e0
commit
dad981029a
1 changed files with 3 additions and 3 deletions
|
@ -147,16 +147,16 @@ int
|
||||||
scm_i_plugin_cond_wait (scm_t_cond *c, scm_t_mutex *mx)
|
scm_i_plugin_cond_wait (scm_t_cond *c, scm_t_mutex *mx)
|
||||||
{
|
{
|
||||||
mutex *m = (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
|
int
|
||||||
scm_i_plugin_cond_wait (scm_t_cond *c,
|
scm_i_plugin_cond_timedwait (scm_t_cond *c,
|
||||||
scm_t_mutex *mx,
|
scm_t_mutex *mx,
|
||||||
const struct timespec *t)
|
const struct timespec *t)
|
||||||
{
|
{
|
||||||
mutex *m = (mutex *) mx;
|
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
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue