diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2002-07-09 13:24:52 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-07-09 13:24:52 +0000 |
| commit | 582dfa2dd46f85479a256228bcf16eae5e89fce0 (patch) | |
| tree | d4855c20e4e86230de190fd91ffcfdbe23403ff3 /lib/libpthread/thread/thr_create.c | |
| parent | 7ade8bb67c98e0699ece3fce250a5ea8207bb6a1 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
| -rw-r--r-- | lib/libpthread/thread/thr_create.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index f84678992f83..0f006a9aabfc 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -207,9 +207,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, /* Add the thread to the linked list of all threads: */ TAILQ_INSERT_HEAD(&_thread_list, new_thread, tle); - if (pattr->suspend == PTHREAD_CREATE_SUSPENDED) + if (pattr->suspend == PTHREAD_CREATE_SUSPENDED) { + new_thread->flags |= PTHREAD_FLAGS_SUSPENDED; new_thread->state = PS_SUSPENDED; - else { + } else { new_thread->state = PS_RUNNING; PTHREAD_PRIOQ_INSERT_TAIL(new_thread); } |
