diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-04-08 13:24:44 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-04-08 13:24:44 +0000 |
commit | 7d0c23506ce44c37be9f669bdc1ec0ff37e66d50 (patch) | |
tree | 1dbe72ab555a424679d073fcee976c4589f5cf3a /lib/libthr/thread/thr_private.h | |
parent | 04498a993a54742b6f15cf278d3443b6cf425f7f (diff) | |
download | FreeBSD-src-7d0c23506ce44c37be9f669bdc1ec0ff37e66d50.zip FreeBSD-src-7d0c23506ce44c37be9f669bdc1ec0ff37e66d50.tar.gz |
Do not check validity of timeout if a mutex can be acquired immediately.
Completly drop recursive mutex in pthread_cond_wait and restore recursive
after resumption. Reorganize code to make gcc to generate better code.
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r-- | lib/libthr/thread/thr_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index f7fa9ab..bc91b94 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -642,8 +642,8 @@ extern umtx_t _thr_event_lock __hidden; */ __BEGIN_DECLS int _thr_setthreaded(int) __hidden; -int _mutex_cv_lock(pthread_mutex_t *) __hidden; -int _mutex_cv_unlock(pthread_mutex_t *) __hidden; +int _mutex_cv_lock(pthread_mutex_t *, int count) __hidden; +int _mutex_cv_unlock(pthread_mutex_t *, int *count) __hidden; int _mutex_reinit(pthread_mutex_t *) __hidden; void _mutex_fork(struct pthread *curthread) __hidden; void _mutex_unlock_private(struct pthread *) __hidden; |