Skip to content

Commit

Permalink
Addressing some CI infer reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarlese committed Mar 11, 2021
1 parent bb976df commit a9d205e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phoebe.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ void runInference() {
unsigned short i;

pthread_t threads[MAX_PLUGINS];
memset(threads, 0, MAX_PLUGINS * sizeof(pthread_t));

for (i = 0; i < registered_plugin_count; i++)
pthread_create(&threads[i], NULL, plugins[i]->inference, NULL);

for (int i = 0; i < registered_plugin_count; i++)
for (i = 0; i < registered_plugin_count; i++)
pthread_join(threads[i], NULL);
}

Expand Down

0 comments on commit a9d205e

Please sign in to comment.