Changeset 8f4bddd in rtems


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.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/ChangeLog

    rda8d470 r8f4bddd  
     12000-12-19      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/pthreadgetschedparam.c: Do not set output parameters if
     4        the pointers are NULL.
     5
    162000-12-06      Joel Sherrill <joel@OARcorp.com>
    27
  • c/src/exec/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;
  • cpukit/posix/ChangeLog

    rda8d470 r8f4bddd  
     12000-12-19      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/pthreadgetschedparam.c: Do not set output parameters if
     4        the pointers are NULL.
     5
    162000-12-06      Joel Sherrill <joel@OARcorp.com>
    27
  • 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.