Changeset 40398c4 in rtems for cpukit/posix/src/mutexinit.c


Ignore:
Timestamp:
Aug 13, 2013, 11:29:56 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, master
Children:
03acc59
Parents:
2606fee
Message:

posix: Handle recursive attributes correctly.

The recursive field in the pthread_mutexattr_t is now not used. The
code in pthread_mutexattr_settype only sets the type field and not
the recursive field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/mutexinit.c

    r2606fee r40398c4  
    166166  the_mutex_attr = &the_mutex->Mutex.Attributes;
    167167
    168   if ( the_attr->recursive )
     168  if ( the_attr->type == PTHREAD_MUTEX_RECURSIVE )
    169169    the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
    170170  else
Note: See TracChangeset for help on using the changeset viewer.