summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/posix/src/pthreaddetach.c1
-rw-r--r--cpukit/posix/src/pthreadsetschedparam.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c
index 1087a2c592..88fd0e070c 100644
--- a/cpukit/posix/src/pthreaddetach.c
+++ b/cpukit/posix/src/pthreaddetach.c
@@ -42,6 +42,7 @@ int pthread_detach(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->detachstate = PTHREAD_CREATE_DETACHED;
+ api->Attributes.detachstate = PTHREAD_CREATE_DETACHED;
_Objects_Put( &the_thread->Object );
return 0;
diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c
index 2759609574..da948efeeb 100644
--- a/cpukit/posix/src/pthreadsetschedparam.c
+++ b/cpukit/posix/src/pthreadsetschedparam.c
@@ -73,6 +73,9 @@ int pthread_setschedparam(
api->schedpolicy = policy;
api->schedparam = *param;
+ api->Attributes.schedpolicy = policy;
+ api->Attributes.schedparam = *param;
+
the_thread->budget_algorithm = budget_algorithm;
the_thread->budget_callout = budget_callout;