diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2000-03-15 13:59:27 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2000-03-15 13:59:27 +0000 |
| commit | 1d013a86edb866de00bf57761c845388c8d9a467 (patch) | |
| tree | 935feb03e56c674b055ccf5f23861c18e476211a /lib/libpthread/thread/thr_create.c | |
| parent | 8d548e1f88b83ea07e628bc6ddb7144ee8379bcd (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
| -rw-r--r-- | lib/libpthread/thread/thr_create.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index b8a1c466b978..3a80611dc145 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -299,10 +299,9 @@ 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->state = PS_SUSPENDED; - PTHREAD_WAITQ_INSERT(new_thread); - } else { + else { new_thread->state = PS_RUNNING; PTHREAD_PRIOQ_INSERT_TAIL(new_thread); } |
