Changeset 7f5fc4e in rtems


Ignore:
Timestamp:
Mar 5, 2007, 8:53:05 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
471998ec
Parents:
3ca0ca79
Message:

2007-03-05 Joel Sherrill <joel@…>

PR 1221/cpukit

  • posix/src/pthreadequal.c: Fix critical section nesting.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r3ca0ca79 r7f5fc4e  
     12007-03-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 1221/cpukit
     4        * posix/src/pthreadequal.c: Fix critical section nesting.
     5
    162007-02-22      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • cpukit/posix/src/pthreadequal.c

    r3ca0ca79 r7f5fc4e  
    44 *  NOTE:  POSIX does not define the behavior when either thread id is invalid.
    55 *
    6  *  COPYRIGHT (c) 1989-1999.
     6 *  COPYRIGHT (c) 1989-2007.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    5656    case OBJECTS_ERROR:
    5757    case OBJECTS_REMOTE:
     58      /* return status == 0 */
    5859      break;
    5960
     
    6869        case OBJECTS_ERROR:
    6970        case OBJECTS_REMOTE:
     71          /* t1 must have been valid so exit the critical section */
     72          _Thread_Enable_dispatch();
     73          /* return status == 0 */
    7074          break;
    7175        case OBJECTS_LOCAL:
    7276          status = _Objects_Are_ids_equal( t1, t2 );
    73           break;
     77          _Thread_Unnest_dispatch();
     78          _Thread_Enable_dispatch();
     79          break;
    7480      }
    75       _Thread_Unnest_dispatch();
    7681      break;
    7782  }
    78 
    79   _Thread_Enable_dispatch();
    8083  return status;
    8184#endif
Note: See TracChangeset for help on using the changeset viewer.