Add _thr_ucond_init().

This commit is contained in:
davidxu 2006-12-05 06:53:44 +00:00
parent ec5c7a4e2d
commit f1f5293365
2 changed files with 10 additions and 3 deletions

View File

@ -105,6 +105,12 @@ _thr_umtx_wake(volatile umtx_t *mtx, int nr_wakeup)
return (errno);
}
void
_thr_ucond_init(struct ucond *cv)
{
bzero(cv, sizeof(struct ucond));
}
int
_thr_ucond_wait(struct ucond *cv, struct umutex *m,
const struct timespec *timeout, int check_unparking)

View File

@ -49,9 +49,10 @@ int _thr_umtx_wait(volatile umtx_t *mtx, umtx_t exp,
const struct timespec *timeout) __hidden;
int _thr_umtx_wake(volatile umtx_t *mtx, int count) __hidden;
int _thr_ucond_wait(struct ucond *cv, struct umutex *m,
const struct timespec *timeout, int check_unpaking);
int _thr_ucond_signal(struct ucond *cv);
int _thr_ucond_broadcast(struct ucond *cv);
const struct timespec *timeout, int check_unpaking) __hidden;
void _thr_ucond_init(struct ucond *cv) __hidden;
int _thr_ucond_signal(struct ucond *cv) __hidden;
int _thr_ucond_broadcast(struct ucond *cv) __hidden;
static inline int
_thr_umutex_trylock(struct umutex *mtx, uint32_t id)