summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/sem.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:08:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:08:26 +0000
commit742b399c665066cb5bd54b40a1a0e35ac4f653ce (patch)
tree225eb038290d250ddb764c36fd762e84a38d049a /cpukit/rtems/src/sem.c
parentadded an assert if a pthread_t is not the same size as an Objects_Id (diff)
downloadrtems-742b399c665066cb5bd54b40a1a0e35ac4f653ce.tar.bz2
added priority ceiling support
Diffstat (limited to 'cpukit/rtems/src/sem.c')
-rw-r--r--cpukit/rtems/src/sem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c
index 004176f4fb..9dd8214b73 100644
--- a/cpukit/rtems/src/sem.c
+++ b/cpukit/rtems/src/sem.c
@@ -126,7 +126,8 @@ rtems_status_code rtems_semaphore_create(
if ( _Attributes_Is_inherit_priority( attribute_set ) )
return RTEMS_NOT_DEFINED;
- } else if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
+ } else if ( _Attributes_Is_inherit_priority( attribute_set ) ||
+ _Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! ( _Attributes_Is_binary_semaphore( attribute_set ) &&
_Attributes_Is_priority( attribute_set ) ) )