Changeset 0207c55 in rtems for c/src/exec/posix/src/pthread.c


Ignore:
Timestamp:
Jun 6, 1996, 3:36:18 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5d9cb7e
Parents:
65a5c1b
Message:

Made the implementation of pthread_equal conditional on RTEMS_DEBUG. If
RTEMS is built for debug, then every possible effort is made to validate
the two ids. Otherwise, a simple comparison is performed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/pthread.c

    r65a5c1b r0207c55  
    10851085)
    10861086{
     1087  /*
     1088   *  If the system is configured for debug, then we will do everything we
     1089   *  can to insure that both ids are valid.  Otherwise, we will do the
     1090   *  cheapest possible thing to determine if they are equal.
     1091   */
     1092
     1093#ifndef RTEMS_DEBUG
     1094  return _Objects_Are_ids_equal( t1, t2 );
     1095#else
    10871096  int               status;
    10881097  Objects_Locations location;
     
    11251134  _Thread_Enable_dispatch();
    11261135  return status;
     1136#endif
    11271137}
    11281138
Note: See TracChangeset for help on using the changeset viewer.