Changeset 5a234809 in rtems


Ignore:
Timestamp:
Aug 27, 1996, 3:19:33 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b5c04b6
Parents:
e4cc4176
Message:

check that we were passed a valid mutex and ignore errors from the
later pthread_mutex_lock. This makes our behavior more compatible
with that of FSU pthreads.

Files:
2 edited

Legend:

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

    re4cc4176 r5a234809  
    371371  int                                         status;
    372372 
     373  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
     374     return EINVAL;
     375  }
     376
     377  _Thread_Unnest_dispatch();
     378
    373379  the_cond = _POSIX_Condition_variables_Get( cond, &location );
    374380  switch ( location ) {
     
    389395 
    390396      status = pthread_mutex_unlock( mutex );
     397/* XXX ignore this for now
    391398      if ( status ) {
    392399        _Thread_Enable_dispatch();
    393400        return EINVAL;
    394401      }
     402*/
    395403 
    396404      _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
  • cpukit/posix/src/cond.c

    re4cc4176 r5a234809  
    371371  int                                         status;
    372372 
     373  if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
     374     return EINVAL;
     375  }
     376
     377  _Thread_Unnest_dispatch();
     378
    373379  the_cond = _POSIX_Condition_variables_Get( cond, &location );
    374380  switch ( location ) {
     
    389395 
    390396      status = pthread_mutex_unlock( mutex );
     397/* XXX ignore this for now
    391398      if ( status ) {
    392399        _Thread_Enable_dispatch();
    393400        return EINVAL;
    394401      }
     402*/
    395403 
    396404      _Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
Note: See TracChangeset for help on using the changeset viewer.