summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_create.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
committerJulian Elischer <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
commitc840cec7c5df4547d37d9ca025553099b834c1aa (patch)
treeb2e6d3017e236268263978b585f2150cd10b1689 /lib/libpthread/thread/thr_create.c
parent3b576b3e5eac153732d10d222cc023a02adc3db7 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
-rw-r--r--lib/libpthread/thread/thr_create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c
index 1d57f8a1626d..e4925a9c420a 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);