From ca059a5aeaae9d5813d714fca45f1aad81e33e85 Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 4 May 2003 16:17:01 +0000 Subject: Fix suspend and resume. Submitted (in part) by: Kazuaki Oda --- lib/libkse/thread/thr_suspend_np.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libkse/thread/thr_suspend_np.c') diff --git a/lib/libkse/thread/thr_suspend_np.c b/lib/libkse/thread/thr_suspend_np.c index 7530dd0..4813de1 100644 --- a/lib/libkse/thread/thr_suspend_np.c +++ b/lib/libkse/thread/thr_suspend_np.c @@ -97,9 +97,10 @@ suspend_common(struct pthread *thread) (thread->state != PS_DEADLOCK) && ((thread->flags & THR_FLAGS_EXITING) == 0)) { thread->flags |= THR_FLAGS_SUSPENDED; - if ((thread->flags & THR_FLAGS_IN_RUNQ) != 0) + if ((thread->flags & THR_FLAGS_IN_RUNQ) != 0) { THR_RUNQ_REMOVE(thread); - THR_SET_STATE(thread, PS_SUSPENDED); + THR_SET_STATE(thread, PS_SUSPENDED); + } #ifdef NOT_YET if ((thread->attr.flags & PTHREAD_SCOPE_SYSTEM) != 0) /* ??? */ -- cgit v1.1