MFC revision 1.24:
> The pthread_attr_set_createsuspend_np was broken, fix it by > replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND. Approved by: re (scottl)
This commit is contained in:
parent
801fe04163
commit
cd55799acc
@ -139,7 +139,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. */
|
||||
|
Loading…
Reference in New Issue
Block a user