From 099fe199017bd01fedf17ddc872cd2f5957fb080 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Fri, 12 Dec 2003 09:51:39 +0000 Subject: [PATCH] Doh! Lock the thread passed in by the caller, not the current thread. --- lib/libthr/thread/thr_resume_np.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libthr/thread/thr_resume_np.c b/lib/libthr/thread/thr_resume_np.c index 0269228c814..269900664b9 100644 --- a/lib/libthr/thread/thr_resume_np.c +++ b/lib/libthr/thread/thr_resume_np.c @@ -49,12 +49,12 @@ _pthread_resume_np(pthread_t thread) /* Find the thread in the list of active threads: */ if ((ret = _find_thread(thread)) == 0) { - _thread_critical_enter(curthread); + _thread_critical_enter(thread); if ((thread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) resume_common(thread); - _thread_critical_exit(curthread); + _thread_critical_exit(thread); } return (ret); }