diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-04-29 03:58:18 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-04-29 03:58:18 +0000 |
commit | 0e9d39ae8fb92317d5c01b606a5921f9b24b18f8 (patch) | |
tree | 526d411e9fd9b2fd964f111c6dd882d1ab4a5096 /lib/libthr/thread/thr_resume_np.c | |
parent | e43b7bfc16592e8563de4f6f5e200878f9efa80c (diff) | |
download | FreeBSD-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_resume_np.c')
-rw-r--r-- | lib/libthr/thread/thr_resume_np.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_resume_np.c b/lib/libthr/thread/thr_resume_np.c index b477a66..50b561a 100644 --- a/lib/libthr/thread/thr_resume_np.c +++ b/lib/libthr/thread/thr_resume_np.c @@ -87,5 +87,5 @@ resume_common(struct pthread *thread) /* Clear the suspend flag: */ thread->flags &= ~THR_FLAGS_NEED_SUSPEND; thread->cycle++; - _thr_umtx_wake(&thread->cycle, 1); + _thr_umtx_wake(&thread->cycle, 1, 0); } |