1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

remove std::auto_ptr

This commit is contained in:
David Mott
2019-04-26 04:46:46 -05:00
parent e65f80f493
commit 35ab11cbb6

View File

@ -75,9 +75,8 @@ public:
boost::thread* create_thread(F threadfunc) boost::thread* create_thread(F threadfunc)
{ {
boost::lock_guard<boost::shared_mutex> guard(m); boost::lock_guard<boost::shared_mutex> guard(m);
std::auto_ptr<boost::thread> new_thread(new boost::thread(threadfunc)); threads.push_back(new boost::thread(threadfunc));
threads.push_back(new_thread.get()); return threads.back();
return new_thread.release();
} }
void add_thread(boost::thread* thrd) void add_thread(boost::thread* thrd)