mirror of
https://github.com/upa/mscp.git
synced 2026-05-13 13:57:30 +08:00
fix miss flag handling for threads[n].finished
This commit is contained in:
@@ -546,11 +546,11 @@ void *sscp_monitor_thread(void *arg)
|
|||||||
}
|
}
|
||||||
gettimeofday(&b, NULL);
|
gettimeofday(&b, NULL);
|
||||||
|
|
||||||
sleep(1);
|
usleep(500000);
|
||||||
|
|
||||||
for (n = 0; n < nr_threads; n++) {
|
for (n = 0; n < nr_threads; n++) {
|
||||||
done += threads[n].done;;
|
done += threads[n].done;;
|
||||||
if (threads[n].finished)
|
if (!threads[n].finished)
|
||||||
all_done = false;
|
all_done = false;
|
||||||
}
|
}
|
||||||
gettimeofday(&a, NULL);
|
gettimeofday(&a, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user