From 06883e131cd035ade756595d0d595918ddd106ed Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Tue, 6 Aug 1996 16:24:06 +0000 Subject: POSIX_Mutex_Default_attributes: changed prio_ceiling to maximum priority --- cpukit/posix/src/mutex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/posix') 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, -- cgit v1.2.3