Skip to content

Commit

Permalink
put global thread pool into separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Dec 7, 2016
1 parent 387acf5 commit 23a60e7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
File renamed without changes.
30 changes: 30 additions & 0 deletions src/global_thread_pool.hpp
@@ -0,0 +1,30 @@
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// FlexibleSUSY is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FlexibleSUSY. If not, see
// <http://www.gnu.org/licenses/>.
// ====================================================================

#include "thread_pool.hpp"
#include "config.h"

namespace flexiblesusy {

#ifdef ENABLE_THREADS

extern Thread_pool global_thread_pool;

#endif

} // namespace flexiblesusy
3 changes: 2 additions & 1 deletion src/module.mk
Expand Up @@ -16,6 +16,7 @@ LIBFLEXI_SRC := \
$(DIR)/dilogc.f \
$(DIR)/effective_couplings.cpp \
$(DIR)/error.cpp \
$(DIR)/global_thread_pool.cpp \
$(DIR)/gm2calc_interface.cpp \
$(DIR)/gsl_utils.cpp \
$(DIR)/gsl_vector.cpp \
Expand Down Expand Up @@ -45,7 +46,6 @@ LIBFLEXI_SRC := \
$(DIR)/standard_model_two_scale_convergence_tester.cpp \
$(DIR)/standard_model_two_scale_low_scale_constraint.cpp \
$(DIR)/standard_model_two_scale_model.cpp \
$(DIR)/thread_pool.cpp \
$(DIR)/threshold_loop_functions.cpp \
$(DIR)/utils.cpp \
$(DIR)/weinberg_angle.cpp \
Expand Down Expand Up @@ -76,6 +76,7 @@ LIBFLEXI_HDR := \
$(DIR)/ewsb_solver.hpp \
$(DIR)/fixed_point_iterator.hpp \
$(DIR)/functors.hpp \
$(DIR)/global_thread_pool.hpp \
$(DIR)/gm2calc_interface.hpp \
$(DIR)/gsl.hpp \
$(DIR)/gsl_utils.hpp \
Expand Down

0 comments on commit 23a60e7

Please sign in to comment.