Add _thr_ucond_init().
This commit is contained in:
parent
ec5c7a4e2d
commit
f1f5293365
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user