Ignore:
Timestamp:
12/19/00 16:42:15 (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c533372
Parents:
da8d470
Message:

2000-12-19 Joel Sherrill <joel@…>

  • src/pthreadgetschedparam.c: Do not set output parameters if the pointers are NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/pthreadgetschedparam.c

    rda8d470 r8f4bddd  
    4141    case OBJECTS_LOCAL:
    4242      api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    43       *policy = api->schedpolicy;
    44       *param  = api->schedparam;
    45       param->sched_priority =
    46         _POSIX_Priority_From_core( the_thread->current_priority );
     43      if ( policy )
     44        *policy = api->schedpolicy;
     45      if ( param ) {
     46        *param  = api->schedparam;
     47        param->sched_priority =
     48          _POSIX_Priority_From_core( the_thread->current_priority );
     49      }
    4750      _Thread_Enable_dispatch();
    4851      return 0;
Note: See TracChangeset for help on using the changeset viewer.