Skip to content

Commit e5e0c3c

Browse files
committed
Use infinite timeout together with signal
1 parent 7f3c641 commit e5e0c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adios2/toolkit/sst/dp/rdma_dp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ static void *make_progress(void *params_)
194194
* fashion otherwise (e.g. shm).
195195
*/
196196
printf("Going into fi_cq_sread()\n");
197-
ssize_t rc = fi_cq_sread(params->cq_signal, (void *)CQEntries, batch_size, NULL,
198-
SST_BACKOFF_SECONDS_MAX * 1000);
197+
ssize_t rc = fi_cq_sread(params->cq_signal, (void *)CQEntries, batch_size, NULL, -1);
199198
printf("fi_cq_sread()=%ld\n", rc);
200199
if (rc < 1)
201200
{
@@ -691,6 +690,7 @@ static void fini_fabric(struct fabric_state *fabric, CP_Services Svcs, void *CP_
691690
{
692691

693692
fabric->cq_manual_progress->do_continue = 0;
693+
fi_cq_signal(fabric->cq_signal);
694694

695695
if (pthread_join(fabric->pthread_id, NULL) != 0)
696696
{

0 commit comments

Comments
 (0)