forked from Imagelibrary/rtems
2009-07-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/corebarrierwait.c: Reverse order of tests to increase test coverage.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-07-20 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* score/src/corebarrierwait.c: Reverse order of tests to increase test
|
||||||
|
coverage.
|
||||||
|
|
||||||
2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* rtems/src/ratemongetstatus.c: Fix spacing.
|
* rtems/src/ratemongetstatus.c: Fix spacing.
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ void _CORE_barrier_Wait(
|
|||||||
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
|
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
the_barrier->number_of_waiting_threads++;
|
the_barrier->number_of_waiting_threads++;
|
||||||
|
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
|
||||||
if ( the_barrier->number_of_waiting_threads ==
|
if ( the_barrier->number_of_waiting_threads ==
|
||||||
the_barrier->Attributes.maximum_count) {
|
the_barrier->Attributes.maximum_count) {
|
||||||
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
|
|
||||||
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
|
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
|
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
|
||||||
|
|||||||
Reference in New Issue
Block a user