mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 13:01:58 +08:00
Fixed bug where the initial detachstate was not being set properly
This commit is contained in:
@@ -998,7 +998,7 @@ int pthread_create(
|
||||
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
|
||||
|
||||
api->Attributes = *the_attr;
|
||||
api->detachstate = attr->detachstate;
|
||||
api->detachstate = the_attr->detachstate;
|
||||
api->schedpolicy = schedpolicy;
|
||||
api->schedparam = schedparam;
|
||||
|
||||
|
||||
@@ -998,7 +998,7 @@ int pthread_create(
|
||||
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
|
||||
|
||||
api->Attributes = *the_attr;
|
||||
api->detachstate = attr->detachstate;
|
||||
api->detachstate = the_attr->detachstate;
|
||||
api->schedpolicy = schedpolicy;
|
||||
api->schedparam = schedparam;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user