added parallel message receiving for previously implemented messaging where necessary

This commit is contained in:
2026-01-30 18:28:19 -08:00
parent 4cdcb16ee3
commit ee238f239d
4 changed files with 28 additions and 29 deletions

View File

@@ -229,6 +229,18 @@ static int waitForAllMessage(int numClients, const char* expectedMessage) {
return 1;
}
// Wait for ACK:TARGET from ALL clients simultaneously
// Returns 1 if all clients acknowledged, 0 otherwise
int waitForAllTargetAck(int numClients) {
return waitForAllMessage(numClients, "ACK:TARGET");
}
// Wait for READY from ALL clients simultaneously
// Returns 1 if all clients are ready, 0 otherwise
int waitForAllReady(int numClients) {
return waitForAllMessage(numClients, "READY");
}
// Wait for RTL_COMPLETE from ALL clients simultaneously
// Returns 1 if all clients completed RTL, 0 otherwise
int waitForAllRTLComplete(int numClients) {