Skip to content

Commit

Permalink
JAVA/TEST: Wait for active message to arrive before checking data
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Apr 19, 2023
1 parent 22604a3 commit a777090
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ public void onSuccess(UcpRequest request) {
sendData.getMemory().getAddress(), 2L, UcpConstants.UCP_AM_FLAG_PERSISTENT_DATA, null,
new UcpRequestParams().setMemoryType(memType).setMemoryHandle(sendData.getMemory()));

while (!Arrays.stream(requests).allMatch(r -> (r != null) && r.isCompleted())) {
while (!Arrays.stream(requests).allMatch(r -> (r != null) && r.isCompleted()) ||
(persistantAmData.get() == null)) {
worker1.progress();
worker2.progress();
}
Expand Down

0 comments on commit a777090

Please sign in to comment.