Fix ThreadPthread.
GitOrigin-RevId: 3b16056894c33775dcf31146a87f1ab1c2ee13cc
This commit is contained in:
parent
130456a3bb
commit
0d5a09e615
@ -36,6 +36,7 @@ class ThreadPthread {
|
||||
join();
|
||||
is_inited_ = std::move(other.is_inited_);
|
||||
thread_ = other.thread_;
|
||||
return *this;
|
||||
}
|
||||
template <class Function, class... Args>
|
||||
explicit ThreadPthread(Function &&f, Args &&... args) {
|
||||
@ -82,7 +83,6 @@ class ThreadPthread {
|
||||
static void *run_thread(void *ptr) {
|
||||
ThreadIdGuard thread_id_guard;
|
||||
auto func = unique_ptr<Destructor>(static_cast<Destructor *>(ptr));
|
||||
func->reset();
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user