forked from Imagelibrary/rtems
2003-07-07 Joel Sherrill <joel@OARcorp.com>
PR 417/rtems * src/coresemsurrender.c: Correct incorrect check for maximum_count reported by Sergei Organov <osv@topconrd.ru>.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2003-07-07 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
PR 417/rtems
|
||||||
|
* src/coresemsurrender.c: Correct incorrect check for maximum_count
|
||||||
|
reported by Sergei Organov <osv@topconrd.ru>.
|
||||||
|
|
||||||
2003-06-13 Joel Sherrill <joel@OARcorp.com>
|
2003-06-13 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* src/threadloadenv.c: Removed warnings.
|
* src/threadloadenv.c: Removed warnings.
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ CORE_semaphore_Status _CORE_semaphore_Surrender(
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_semaphore->count <= the_semaphore->Attributes.maximum_count )
|
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
|
||||||
the_semaphore->count += 1;
|
the_semaphore->count += 1;
|
||||||
else
|
else
|
||||||
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
|
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
|
||||||
|
|||||||
Reference in New Issue
Block a user