Skip to content

Commit

Permalink
Fix #2592, Yield cpu to let other task run
Browse files Browse the repository at this point in the history
This avoids the timeout on SB receives for the receiver tasks
  • Loading branch information
pepepr08 committed Aug 16, 2024
1 parent 7e6504d commit 74a2978
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/cfe_testcase/src/sb_performance_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ void RunSingleCmdSendRecv(void)
UtAssert_UINT32_EQ(CmdPtr->Payload.Value, CmdMsg.Payload.Value);
break;
}

/* Yield cpu to other task with same priority */
OS_TaskDelay(0);
}

CFE_PSP_GetTime(&BulkCmd.EndTime);
Expand Down Expand Up @@ -255,6 +258,9 @@ void RunSingleTlmSendRecv(void)
UtAssert_UINT32_EQ(TlmPtr->Payload.Value, TlmMsg.Payload.Value);
break;
}

/* Yield cpu to other task with same priority */
OS_TaskDelay(0);
}

CFE_PSP_GetTime(&BulkTlm.EndTime);
Expand Down Expand Up @@ -388,6 +394,9 @@ void UT_CommandTransmitterTask(void)
CFE_Assert_STATUS_MUST_BE(CFE_SUCCESS);
break;
}

/* Yield cpu to other task with same priority */
OS_TaskDelay(0);
}

BulkCmd.XmitFinished = true;
Expand Down Expand Up @@ -424,6 +433,9 @@ void UT_TelemtryTransmitterTask(void)
CFE_Assert_STATUS_MUST_BE(CFE_SUCCESS);
break;
}

/* Yield cpu to other task with same priority */
OS_TaskDelay(0);
}

BulkTlm.XmitFinished = true;
Expand Down

0 comments on commit 74a2978

Please sign in to comment.