summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-08 15:29:14 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-09 08:12:11 +0100
commit64ba1a9606c86f54d66d1d5cc638fb9aff7338a2 (patch)
treec0997ac9fa5e211b93569ed3b3b673bd697008f5 /cpukit/score/include
parentposix: Remove POSIX_API_Control::schedpolicy (diff)
downloadrtems-64ba1a9606c86f54d66d1d5cc638fb9aff7338a2.tar.bz2
posix: Change created_with_explicit_scheduler
Remove POSIX_API_Control::created_with_explicit_scheduler. Add Thread_Control::was_created_with_inherited_scheduler. This fixes also pthread_getattr_np() for Classic tasks. Update #2514.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r--cpukit/score/include/rtems/score/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 488e961007..7e0e2722dd 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -773,6 +773,12 @@ struct _Thread_Control {
/** This field is true if the thread uses the floating point unit. */
bool is_fp;
+ /**
+ * @brief True, if the thread was created with an inherited scheduler
+ * (PTHREAD_INHERIT_SCHED), and false otherwise.
+ */
+ bool was_created_with_inherited_scheduler;
+
/** This field is the length of the time quantum that this thread is
* allowed to consume. The algorithm used to manage limits on CPU usage
* is specified by budget_algorithm.