Changeset 95b76bc in rtems


Ignore:
Timestamp:
08/13/96 21:10:06 (27 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dce801d
Parents:
456b3769
Message:

pthread_codn_destroy: EBUSY case moved and uses Thread_queue_First

Files:
2 edited

Legend:

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

    r456b3769 r95b76bc  
    257257    case OBJECTS_LOCAL:
    258258 
     259      if ( _Thread_queue_First( &the_cond->Wait_queue ) )
     260        return EBUSY;
     261 
    259262      _Objects_Close(
    260263        &_POSIX_Condition_variables_Information,
    261264        &the_cond->Object
    262265      );
    263  
    264       if ( _Thread_queue_First( &the_cond->Wait_queue ) )
    265         return EBUSY;
    266266 
    267267      _POSIX_Condition_variables_Free( the_cond );
  • cpukit/posix/src/cond.c

    r456b3769 r95b76bc  
    257257    case OBJECTS_LOCAL:
    258258 
     259      if ( _Thread_queue_First( &the_cond->Wait_queue ) )
     260        return EBUSY;
     261 
    259262      _Objects_Close(
    260263        &_POSIX_Condition_variables_Information,
    261264        &the_cond->Object
    262265      );
    263  
    264       if ( _Thread_queue_First( &the_cond->Wait_queue ) )
    265         return EBUSY;
    266266 
    267267      _POSIX_Condition_variables_Free( the_cond );
Note: See TracChangeset for help on using the changeset viewer.