summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_umtx.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-04-29 03:58:18 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-04-29 03:58:18 +0000
commit0e9d39ae8fb92317d5c01b606a5921f9b24b18f8 (patch)
tree526d411e9fd9b2fd964f111c6dd882d1ab4a5096 /lib/libthr/thread/thr_umtx.h
parente43b7bfc16592e8563de4f6f5e200878f9efa80c (diff)
downloadFreeBSD-src-0e9d39ae8fb92317d5c01b606a5921f9b24b18f8.zip
FreeBSD-src-0e9d39ae8fb92317d5c01b606a5921f9b24b18f8.tar.gz
Use UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to save
time in kernel(avoid VM lookup).
Diffstat (limited to 'lib/libthr/thread/thr_umtx.h')
-rw-r--r--lib/libthr/thread/thr_umtx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_umtx.h b/lib/libthr/thread/thr_umtx.h
index 752e7b2..0ef75a7 100644
--- a/lib/libthr/thread/thr_umtx.h
+++ b/lib/libthr/thread/thr_umtx.h
@@ -46,8 +46,8 @@ void _thr_umutex_init(struct umutex *mtx) __hidden;
int _thr_umtx_wait(volatile long *mtx, long exp,
const struct timespec *timeout) __hidden;
int _thr_umtx_wait_uint(volatile u_int *mtx, u_int exp,
- const struct timespec *timeout) __hidden;
-int _thr_umtx_wake(volatile void *mtx, int count) __hidden;
+ const struct timespec *timeout, int shared) __hidden;
+int _thr_umtx_wake(volatile void *mtx, int count, int shared) __hidden;
int _thr_ucond_wait(struct ucond *cv, struct umutex *m,
const struct timespec *timeout, int check_unpaking) __hidden;
void _thr_ucond_init(struct ucond *cv) __hidden;
OpenPOWER on IntegriCloud