The pthread_attr_set_createsuspend_np was broken, fix it by

replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND.
This commit is contained in:
David Xu 2005-10-10 12:15:07 +00:00
parent b3f2825399
commit 88676cbc2c

View File

@ -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. */