From 64ba1a9606c86f54d66d1d5cc638fb9aff7338a2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Nov 2017 15:29:14 +0100 Subject: 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. --- cpukit/score/include/rtems/score/thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/score/include') 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. -- cgit v1.2.3