Changeset 56e135a1 in rtems


Ignore:
Timestamp:
Jul 27, 2010, 2:17:31 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
dcbc5458
Parents:
37d6e55
Message:

2010-07-26 Joel Sherrill <joel.sherrilL@…>

  • score/src/threadget.c: Conditionalize a check that can only occur when POSIX is disabled.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r37d6e55 r56e135a1  
     12010-07-26      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * score/src/threadget.c: Conditionalize a check that can only occur
     4        when POSIX is disabled.
     5
    162010-07-26      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • cpukit/score/src/threadget.c

    r37d6e55 r56e135a1  
    11/*
    2  *  Thread Handler
     2 *  Thread Handler - Object Id to Thread Pointer
    33 *
    4  *
    5  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2010.
    65 *  On-Line Applications Research Corporation (OAR).
    76 *
     
    4645 *         further optimization attention.
    4746 */
    48 
    4947Thread_Control *_Thread_Get (
    5048  Objects_Id         id,
     
    7876
    7977  api_information = _Objects_Information_table[ the_api ];
    80   if ( !api_information ) {
    81     *location = OBJECTS_ERROR;
    82     goto done;
    83   }
     78  /*
     79   *  There is no way for this to happen if POSIX is enabled.
     80   */
     81  #if !defined(RTEMS_POSIX_API)
     82    if ( !api_information ) {
     83      *location = OBJECTS_ERROR;
     84      goto done;
     85    }
     86  #endif
    8487
    8588  information = api_information[ the_class ];
Note: See TracChangeset for help on using the changeset viewer.