POSIX_Mutex_Default_attributes: changed prio_ceiling to maximum priority

This commit is contained in:
Mark Johannes
1996-08-06 16:24:06 +00:00
parent b521ae2fa7
commit 06883e131c
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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,
+2 -1
View File
@@ -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,