Changeset 6bab009 in rtems
- Timestamp:
- 06/14/16 15:23:03 (7 years ago)
- Branches:
- 5, master
- Children:
- eec08ef
- Parents:
- 4dc5450
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/14/16 15:23:03)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/22/16 12:00:28)
- Location:
- cpukit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/include/rtems/posix/threadsup.h
r4dc5450 r6bab009 46 46 /** Back pointer to thread of this POSIX API control. */ 47 47 Thread_Control *thread; 48 48 49 /** This is the POSIX threads attribute set. */ 49 50 pthread_attr_t Attributes; 50 /** This is the thread's current set of scheduling parameters. */ 51 struct sched_param schedparam; 51 52 52 /** 53 53 * This is the timer which controls when the thread executes at -
cpukit/posix/src/pthread.c
r4dc5450 r6bab009 117 117 _POSIX_Threads_Sporadic_timer_insert( the_thread, api ); 118 118 119 new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); 119 new_priority = _POSIX_Priority_To_core( 120 api->Attributes.schedparam.sched_priority 121 ); 120 122 121 123 _Thread_State_release( the_thread, &lock_context ); … … 168 170 _Thread_Change_priority( 169 171 the_thread, 170 _POSIX_Priority_To_core( api->schedparam.sched_ss_low_priority ), 172 _POSIX_Priority_To_core( 173 api->Attributes.schedparam.sched_ss_low_priority 174 ), 171 175 NULL, 172 176 _POSIX_Threads_Sporadic_budget_callout_filter, … … 194 198 api->thread = created; 195 199 _POSIX_Threads_Initialize_attributes( &api->Attributes ); 196 api-> schedparam = _POSIX_Threads_Default_attributes.schedparam;197 api->schedparam.sched_priority =198 _POSIX_Priority_From_core( created->current_priority);200 api->Attributes.schedparam.sched_priority = _POSIX_Priority_From_core( 201 created->current_priority 202 ); 199 203 200 204 /* -
cpukit/posix/src/pthreadcreate.c
r4dc5450 r6bab009 112 112 api = executing->API_Extensions[ THREAD_API_POSIX ]; 113 113 schedpolicy = api->Attributes.schedpolicy; 114 schedparam = api-> schedparam;114 schedparam = api->Attributes.schedparam; 115 115 break; 116 116 … … 227 227 228 228 _POSIX_Threads_Copy_attributes( &api->Attributes, the_attr ); 229 api->schedparam = schedparam;230 229 231 230 if ( schedpolicy == SCHED_SPORADIC ) { -
cpukit/posix/src/pthreadgetschedparam.c
r4dc5450 r6bab009 53 53 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 54 54 *policy = api->Attributes.schedpolicy; 55 *param = api-> schedparam;55 *param = api->Attributes.schedparam; 56 56 param->sched_priority = _POSIX_Priority_From_core( 57 57 the_thread->real_priority -
cpukit/posix/src/pthreadsetschedparam.c
r4dc5450 r6bab009 85 85 } 86 86 87 api->schedparam = *param;88 87 api->Attributes.schedpolicy = policy; 89 88 api->Attributes.schedparam = *param; … … 98 97 the_thread->cpu_time_budget = 99 98 rtems_configuration_get_ticks_per_timeslice(); 100 new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); 99 new_priority = _POSIX_Priority_To_core( 100 api->Attributes.schedparam.sched_priority 101 ); 101 102 break; 102 103 } -
cpukit/posix/src/pthreadsetschedprio.c
r4dc5450 r6bab009 44 44 45 45 _Thread_State_acquire_critical( the_thread, &lock_context ); 46 api->schedparam.sched_priority = prio;47 46 api->Attributes.schedparam.sched_priority = prio; 48 47 _Thread_State_release( the_thread, &lock_context ); -
cpukit/score/include/rtems/score/thread.h
r4dc5450 r6bab009 712 712 * 713 713 * - POSIX_API_Control::Attributes, 714 * - POSIX_API_Control::schedparam,715 714 * - RTEMS_API_Control::Signal, 716 715 * - Thread_Control::budget_algorithm,
Note: See TracChangeset
for help on using the changeset viewer.