diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-06 16:24:06 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-06 16:24:06 +0000 |
commit | 06883e131cd035ade756595d0d595918ddd106ed (patch) | |
tree | aa67ba8422c630ae28fd10a828aea85a5c3b6df7 /cpukit/posix | |
parent | pthread_getspecific: use local variable so references to tcb are completed (diff) | |
download | rtems-06883e131cd035ade756595d0d595918ddd106ed.tar.bz2 |
POSIX_Mutex_Default_attributes: changed prio_ceiling to maximum priority
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/mutex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index 318635236a..243aa5cda6 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -57,7 +57,7 @@ int _POSIX_Mutex_MP_Send_request_packet ( const pthread_mutexattr_t _POSIX_Mutex_Default_attributes = { TRUE, /* is_initialized */ PTHREAD_PROCESS_PRIVATE, /* process_shared */ - POSIX_SCHEDULER_MINIMUM_PRIORITY, /* prio_ceiling */ + POSIX_SCHEDULER_MAXIMUM_PRIORITY, /* prio_ceiling */ PTHREAD_PRIO_NONE, /* protocol */ FALSE /* recursive */ }; @@ -611,6 +611,7 @@ int pthread_mutex_setprioceiling( return POSIX_MP_NOT_IMPLEMENTED(); return EINVAL; case OBJECTS_LOCAL: + *old_ceiling = the_mutex->Mutex.Attributes.priority_ceiling; the_mutex->Mutex.Attributes.priority_ceiling = the_priority; _CORE_mutex_Surrender( &the_mutex->Mutex, |