forked from Imagelibrary/rtems
Added code to utilize the maximum_count attribute of core semaphores
and initialize it to a value that would keep it from every being a problem.
This commit is contained in:
@@ -93,6 +93,7 @@ rtems_status_code rtems_semaphore_create(
|
||||
|
||||
} else
|
||||
#endif
|
||||
|
||||
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
|
||||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
|
||||
|
||||
@@ -165,6 +166,12 @@ rtems_status_code rtems_semaphore_create(
|
||||
else
|
||||
the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
|
||||
|
||||
/*
|
||||
* This effectively disables limit checking.
|
||||
*/
|
||||
|
||||
the_semaphore_attributes.maximum_count = 0xFFFFFFFF;
|
||||
|
||||
/*
|
||||
* The following are just to make Purify happy.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user