remove boost::thread dependency

This commit is contained in:
decimad 2016-07-02 04:37:40 +02:00 committed by Wayne Stambaugh
parent 44ba343a7b
commit 4248a7ffce
2 changed files with 4 additions and 4 deletions

View File

@ -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 )

View File

@ -50,7 +50,7 @@
#include <fp_lib_table.h>
#include <fpid.h>
#include <class_module.h>
#include <boost/thread.hpp>
#include <thread>
#include <html_messagebox.h>
@ -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 ) );
}