提交 bba8fe0a 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

wait for children in asharing; otherwise asharing returns before

children are finished, and we can get partial results.
上级 d959c79e
......@@ -78,6 +78,9 @@ main(int ac, char **av)
pthread_t tid;
pthread_create(&tid, 0, op, (void*) i);
}
for (u64 i = 0; i < ncore; i++)
wait();
mtdisable("xv6-asharing");
}
}
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论