Loop until supervisor exits
This commit is contained in:
parent
93131dc027
commit
5fe85da2ef
@ -303,7 +303,9 @@ int main(int argc, char *argv[])
|
|||||||
int permutation[graph.V];
|
int permutation[graph.V];
|
||||||
|
|
||||||
while (quit == 0) {
|
while (quit == 0) {
|
||||||
for (int i = 0; i < 10000000; i++) {
|
if (shared->quit == 1)
|
||||||
|
break;
|
||||||
|
|
||||||
int solution[MAX_ITEMS];
|
int solution[MAX_ITEMS];
|
||||||
genSolution(permutation, graph.V, solution);
|
genSolution(permutation, graph.V, solution);
|
||||||
printf("[");
|
printf("[");
|
||||||
@ -320,8 +322,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
printf("%d]\n", solution[j]);
|
printf("%d]\n", solution[j]);
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user