mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
validation: Fix synchronization issue
This commit is contained in:
@@ -537,11 +537,15 @@ static void Cleanup( Context *ctx )
|
||||
TQWaitForExecutionStop( ctx->tq_ctx, NEW_OWNER );
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
TQSendAndWaitForExecutionStop(
|
||||
TQSendAndSynchronizeRunner(
|
||||
ctx->tq_ctx,
|
||||
NEW_OWNER,
|
||||
TQ_EVENT_MUTEX_B_RELEASE
|
||||
);
|
||||
TQWaitForExecutionStop(
|
||||
ctx->tq_ctx,
|
||||
NEW_OWNER
|
||||
);
|
||||
|
||||
if ( ctx->gains_new_priority ) {
|
||||
TQSendAndSynchronizeRunner(
|
||||
|
||||
Reference in New Issue
Block a user