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/libpthread/thread/thr_create.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_create.c') diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index 0c9edbd..4cc1b6c 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -259,8 +259,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, new_thread->flags = 0; new_thread->continuation = NULL; - if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) + if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) { new_thread->state = PS_SUSPENDED; + new_thread->flags = THR_FLAGS_SUSPENDED; + } else new_thread->state = PS_RUNNING; -- cgit v1.1