You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-1750 unique_ptr doesn't work in all OSes
This commit is contained in:
@ -75,7 +75,7 @@ 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::unique_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
std::auto_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
||||||
threads.push_back(new_thread.get());
|
threads.push_back(new_thread.get());
|
||||||
return new_thread.release();
|
return new_thread.release();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user