We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5038a commit 5e356dbCopy full SHA for 5e356db
env/env_posix.cc
@@ -231,7 +231,7 @@ class PosixEnv : public CompositeEnv {
231
explicit JoinThreadsOnExit(PosixEnv& _deflt) : deflt(_deflt) {}
232
~JoinThreadsOnExit() {
233
for (auto& tid : deflt.threads_to_join_) {
234
- pthread_join(tid.native_handle(), nullptr);
+ tid.join();
235
}
236
for (int pool_id = 0; pool_id < Env::Priority::TOTAL; ++pool_id) {
237
deflt.thread_pools_[pool_id].JoinAllThreads();
0 commit comments