Changeset 8860ecf2 in rtems


Ignore:
Timestamp:
Jul 6, 2009, 10:02:34 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
9a845e17
Parents:
824b3d1c
Message:

2009-07-06 Joel Sherrill <joel.sherrill@…>

  • posix/src/mutexget.c: Restructure to improve ability to do coverage analysis.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r824b3d1c r8860ecf2  
     12009-07-06      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/src/mutexget.c: Restructure to improve ability to do coverage
     4        analysis.
     5
    162009-07-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/posix/src/mutexget.c

    r824b3d1c r8860ecf2  
    3535 */
    3636
    37 #define ___POSIX_Mutex_Get_support( _id, _location ) \
     37#define ___POSIX_Mutex_Get_support_error_check( _id, _location ) \
    3838  do { \
    39     int _status; \
    40     \
    4139    if ( !_id ) { \
    4240      *_location = OBJECTS_ERROR; \
    4341      return (POSIX_Mutex_Control *) 0; \
    4442    }  \
     43  } while (0)
     44
     45#define ___POSIX_Mutex_Get_support_auto_initialization( _id, _location ) \
     46  do { \
     47    int _status; \
    4548    \
    4649    if ( *_id == PTHREAD_MUTEX_INITIALIZER ) { \
     
    4851       *  Do an "auto-create" here. \
    4952       */ \
    50     \
     53      \
    5154      _status = pthread_mutex_init( (pthread_mutex_t *)_id, 0 ); \
    5255      if ( _status ) { \
     
    6265)
    6366{
    64   ___POSIX_Mutex_Get_support( mutex, location );
     67  ___POSIX_Mutex_Get_support_error_check( mutex, location );
     68
     69  ___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
    6570
    6671  return (POSIX_Mutex_Control *)
     
    7479)
    7580{
    76   ___POSIX_Mutex_Get_support( mutex, location );
     81  ___POSIX_Mutex_Get_support_error_check( mutex, location );
     82
     83  ___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
    7784
    7885  return (POSIX_Mutex_Control *) _Objects_Get_isr_disable(
Note: See TracChangeset for help on using the changeset viewer.