support cv_broadcast()
This commit is contained in:
parent
40dffa27fd
commit
5251a48396
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locks.c,v 1.3 2007/11/17 20:50:18 pooka Exp $ */
|
||||
/* $NetBSD: locks.c,v 1.4 2007/11/19 14:17:26 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
|
@ -171,6 +171,13 @@ cv_signal(kcondvar_t *cv)
|
|||
rumpuser_cv_signal(RUMPCV(cv));
|
||||
}
|
||||
|
||||
void
|
||||
cv_broadcast(kcondvar_t *cv)
|
||||
{
|
||||
|
||||
rumpuser_cv_broadcast(RUMPCV(cv));
|
||||
}
|
||||
|
||||
/* kernel biglock, only for vnode_if */
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rumpuser.h,v 1.11 2007/11/17 20:50:18 pooka Exp $ */
|
||||
/* $NetBSD: rumpuser.h,v 1.12 2007/11/19 14:17:22 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
|
@ -94,6 +94,7 @@ void rumpuser_cv_destroy(struct rumpuser_cv *);
|
|||
void rumpuser_cv_wait(struct rumpuser_cv *, struct rumpuser_mtx *);
|
||||
int rumpuser_cv_timedwait(struct rumpuser_cv *, struct rumpuser_mtx *, int);
|
||||
void rumpuser_cv_signal(struct rumpuser_cv *);
|
||||
void rumpuser_cv_broadcast(struct rumpuser_cv *);
|
||||
|
||||
void rumpuser_set_curlwp(struct lwp *);
|
||||
struct lwp *rumpuser_get_curlwp(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rumpuser_pth.c,v 1.5 2007/11/17 20:50:18 pooka Exp $ */
|
||||
/* $NetBSD: rumpuser_pth.c,v 1.6 2007/11/19 14:17:22 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
|
@ -272,6 +272,13 @@ rumpuser_cv_signal(struct rumpuser_cv *cv)
|
|||
NOFAIL(pthread_cond_signal(&cv->pthcv) == 0);
|
||||
}
|
||||
|
||||
void
|
||||
rumpuser_cv_broadcast(struct rumpuser_cv *cv)
|
||||
{
|
||||
|
||||
NOFAIL(pthread_cond_broadcast(&cv->pthcv) == 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* curlwp
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue