diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-12-05 06:53:44 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-12-05 06:53:44 +0000 |
commit | f1f529336506971061548ea5dd335e3874fad4ca (patch) | |
tree | b1f5f6378f2ccdffaaf489927cfd74df0eddb876 /lib/libthr/thread/thr_umtx.c | |
parent | ec5c7a4e2d98ea8bf431990ca781afc1ddfd7a2f (diff) | |
download | FreeBSD-src-f1f529336506971061548ea5dd335e3874fad4ca.zip FreeBSD-src-f1f529336506971061548ea5dd335e3874fad4ca.tar.gz |
Add _thr_ucond_init().
Diffstat (limited to 'lib/libthr/thread/thr_umtx.c')
-rw-r--r-- | lib/libthr/thread/thr_umtx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c index 7529c85..8a8c908 100644 --- a/lib/libthr/thread/thr_umtx.c +++ b/lib/libthr/thread/thr_umtx.c @@ -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) |