forked from Imagelibrary/rtems
invalid use of tcb field resource count
This commit is contained in:
@@ -135,7 +135,6 @@ void _CORE_semaphore_Seize(
|
|||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_semaphore->count != 0 ) {
|
if ( the_semaphore->count != 0 ) {
|
||||||
the_semaphore->count -= 1;
|
the_semaphore->count -= 1;
|
||||||
executing->resource_count++;
|
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ void _CORE_semaphore_Seize(
|
|||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_semaphore->count != 0 ) {
|
if ( the_semaphore->count != 0 ) {
|
||||||
the_semaphore->count -= 1;
|
the_semaphore->count -= 1;
|
||||||
executing->resource_count++;
|
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user