From 88676cbc2c01934cb2be5212dd5c83214c5239a6 Mon Sep 17 00:00:00 2001 From: David Xu Date: Mon, 10 Oct 2005 12:15:07 +0000 Subject: [PATCH] The pthread_attr_set_createsuspend_np was broken, fix it by replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND. --- lib/libthr/thread/thr_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 22d35e70e363..0824555baab1 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -140,7 +140,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, /* Initialise hooks in the thread structure: */ if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) - new_thread->flags = THR_FLAGS_SUSPENDED; + new_thread->flags = THR_FLAGS_NEED_SUSPEND; new_thread->state = PS_RUNNING; /* Add the new thread. */