Skip to content

Commit

Permalink
opal_progress: progress events if num_event_users > 0
Browse files Browse the repository at this point in the history
Signed-off-by: Yossi Itigin <[email protected]>
  • Loading branch information
yosefe committed Jan 16, 2018
1 parent 4677aa1 commit e713a28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opal/runtime/opal_progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int opal_progress_events()
void
opal_progress(void)
{
static volatile uint32_t num_calls = 0;
static uint32_t num_calls = 0;
size_t i;
int events = 0;

Expand All @@ -239,6 +239,8 @@ opal_progress(void)
events += (callbacks_lp[i])();
}

opal_progress_events();
} else if (num_event_users > 0) {
opal_progress_events();
}

Expand Down

0 comments on commit e713a28

Please sign in to comment.