Skip to content

Commit

Permalink
fix incorrect pthread_join in maxp (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 authored Jul 1, 2023
1 parent 8392c51 commit b512f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clustering/azp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ void MaxpRegion::PhaseConstructionThreaded()
perror("Thread create failed.");
}
}
for (int j = 0; j < nCPUs; j++) {
for (int j = 0; j < tot_threads; j++) {
pthread_join(threadPool[j], NULL);
}
delete[] args;
Expand Down Expand Up @@ -1242,7 +1242,7 @@ void MaxpRegion::PhaseLocalImprovementThreaded()
perror("Thread create failed.");
}
}
for (int j = 0; j < nCPUs; j++) {
for (int j = 0; j < tot_threads; j++) {
pthread_join(threadPool[j], NULL);
}
delete[] args;
Expand Down

0 comments on commit b512f74

Please sign in to comment.