From c2f7c3e4893b6b5c4494d549b3645e06664bc1b1 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 5 Feb 1997 23:26:09 +0000 Subject: Submitted by: John Birrell uthreads update from the author. --- lib/libpthread/thread/thr_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 1d57f8a..e4925a9 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -87,9 +87,9 @@ _thread_create(pthread_t * thread, const pthread_attr_t * attr, new_thread->start_routine = start_routine; new_thread->arg = arg; if (pattr->suspend == PTHREAD_CREATE_SUSPENDED) { - new_thread->state = PS_SUSPENDED; + PTHREAD_NEW_STATE(new_thread,PS_SUSPENDED); } else { - new_thread->state = PS_RUNNING; + PTHREAD_NEW_STATE(new_thread,PS_RUNNING); } /* Initialise the thread for signals: */ @@ -208,7 +208,7 @@ _thread_create(pthread_t * thread, const pthread_attr_t * attr, * a signal handler thread which must now * wait for the signal handler to complete: */ - parent->state = PS_SIGTHREAD; + PTHREAD_NEW_STATE(parent,PS_SIGTHREAD); } else { /* Schedule the new user thread: */ _thread_kern_sched(NULL); -- cgit v1.1