From 4248a7ffce4c8fc450d38359ec256cccc11310d3 Mon Sep 17 00:00:00 2001 From: decimad Date: Sat, 2 Jul 2016 04:37:40 +0200 Subject: [PATCH] remove boost::thread dependency --- CMakeLists.txt | 2 +- common/footprint_info.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3e0eec5f5..2ccf9540e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -541,7 +541,7 @@ find_package( Cairo 1.8.8 REQUIRED ) # # Note: Prior to Boost 1.59, the Boost context library is not built when compiling on windows # with GCC. You must patch the Boost sources. -find_package( Boost 1.54.0 REQUIRED COMPONENTS context system thread ) +find_package( Boost 1.54.0 REQUIRED COMPONENTS context system ) # Include MinGW resource compiler. include( MinGWResourceCompiler ) diff --git a/common/footprint_info.cpp b/common/footprint_info.cpp index ff4fdee9f6..aafe27d799 100644 --- a/common/footprint_info.cpp +++ b/common/footprint_info.cpp @@ -50,7 +50,7 @@ #include #include #include -#include +#include #include @@ -213,7 +213,7 @@ bool FOOTPRINT_LIST::ReadFootprintFiles( FP_LIB_TABLE* aTable, const wxString* a LOCALE_IO top_most_nesting; // Something which will not invoke a thread copy constructor, one of many ways obviously: - typedef boost::ptr_vector< boost::thread > MYTHREADS; + typedef std::vector< std::thread > MYTHREADS; MYTHREADS threads; @@ -234,7 +234,7 @@ bool FOOTPRINT_LIST::ReadFootprintFiles( FP_LIB_TABLE* aTable, const wxString* a else { // Delegate the job to a temporary thread created here. - threads.push_back( new boost::thread( &FOOTPRINT_LIST::loader_job, + threads.push_back( std::thread( &FOOTPRINT_LIST::loader_job, this, &nicknames[i], jobz ) ); }