We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8961692 commit 1deace1Copy full SHA for 1deace1
ompi/request/req_test.c
@@ -35,7 +35,7 @@ int ompi_request_default_test(ompi_request_t ** rptr,
35
#if OPAL_ENABLE_PROGRESS_THREADS == 0
36
int do_it_once = 0;
37
38
- recheck_request_status:
+recheck_request_status:
39
#endif
40
opal_atomic_mb();
41
if( request->req_state == OMPI_REQUEST_INACTIVE ) {
@@ -94,9 +94,10 @@ int ompi_request_default_test(ompi_request_t ** rptr,
94
* If we run the opal_progress then check the status of the request before
95
* leaving. We will call the opal_progress only once per call.
96
*/
97
- opal_progress();
98
- do_it_once++;
99
- goto recheck_request_status;
+ ++do_it_once;
+ if (0 != opal_progress()) {
+ goto recheck_request_status;
100
+ }
101
}
102
103
*completed = false;
0 commit comments