Changeset 4dc5450 in rtems
- Timestamp:
- 06/14/16 15:21:53 (7 years ago)
- Branches:
- 5, master
- Children:
- 6bab009
- Parents:
- 4da078a8
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/14/16 15:21:53)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/22/16 12:00:28)
- Location:
- cpukit
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/include/rtems/posix/threadsup.h
r4da078a8 r4dc5450 48 48 /** This is the POSIX threads attribute set. */ 49 49 pthread_attr_t Attributes; 50 /** This is the thread's current scheduling policy. */51 int schedpolicy;52 50 /** This is the thread's current set of scheduling parameters. */ 53 51 struct sched_param schedparam; -
cpukit/posix/src/pthread.c
r4da078a8 r4dc5450 194 194 api->thread = created; 195 195 _POSIX_Threads_Initialize_attributes( &api->Attributes ); 196 api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy;197 196 api->schedparam = _POSIX_Threads_Default_attributes.schedparam; 198 197 api->schedparam.sched_priority = … … 233 232 _Thread_State_acquire( executing, &lock_context ); 234 233 235 if ( api-> schedpolicy == SCHED_SPORADIC ) {234 if ( api->Attributes.schedpolicy == SCHED_SPORADIC ) { 236 235 _Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer ); 237 236 } -
cpukit/posix/src/pthreadcreate.c
r4da078a8 r4dc5450 111 111 case PTHREAD_INHERIT_SCHED: 112 112 api = executing->API_Extensions[ THREAD_API_POSIX ]; 113 schedpolicy = api-> schedpolicy;113 schedpolicy = api->Attributes.schedpolicy; 114 114 schedparam = api->schedparam; 115 115 break; … … 227 227 228 228 _POSIX_Threads_Copy_attributes( &api->Attributes, the_attr ); 229 api->schedpolicy = schedpolicy;230 229 api->schedparam = schedparam; 231 230 -
cpukit/posix/src/pthreadgetschedparam.c
r4da078a8 r4dc5450 52 52 53 53 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 54 *policy = api-> schedpolicy;54 *policy = api->Attributes.schedpolicy; 55 55 *param = api->schedparam; 56 56 param->sched_priority = _POSIX_Priority_From_core( -
cpukit/posix/src/pthreadsetschedparam.c
r4da078a8 r4dc5450 81 81 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 82 82 83 if ( api-> schedpolicy == SCHED_SPORADIC ) {83 if ( api->Attributes.schedpolicy == SCHED_SPORADIC ) { 84 84 _Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer ); 85 85 } 86 86 87 api->schedpolicy = policy;88 87 api->schedparam = *param; 89 88 api->Attributes.schedpolicy = policy; -
cpukit/score/include/rtems/score/thread.h
r4da078a8 r4dc5450 713 713 * - POSIX_API_Control::Attributes, 714 714 * - POSIX_API_Control::schedparam, 715 * - POSIX_API_Control::schedpolicy,716 715 * - RTEMS_API_Control::Signal, 717 716 * - Thread_Control::budget_algorithm,
Note: See TracChangeset
for help on using the changeset viewer.