Skip to content

Commit

Permalink
Bugfix: fix compilation with --disable-threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 28, 2016
1 parent 769460f commit db67c81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/mssm_twoloophiggs.cpp
Expand Up @@ -25,15 +25,16 @@
#ifdef ENABLE_THREADS
#include <mutex>
#define LOCK_MUTEX() std::lock_guard<std::mutex> lg(mtx_mssm)
namespace flexiblesusy {namespace mssm_twoloophiggs {
static std::mutex mtx_mssm; /// locks MSSM fortran functions
}}
#else
#define LOCK_MUTEX()
#endif

namespace flexiblesusy {
namespace mssm_twoloophiggs {

static std::mutex mtx_mssm; /// locks MSSM fortran functions

Eigen::Matrix<double, 2, 1> tadpole_higgs_2loop_at_as_mssm(
double mt2, double mg, double mst12, double mst22,
double sxt, double cxt, double scale2,
Expand Down
5 changes: 3 additions & 2 deletions src/nmssm_twoloophiggs.cpp
Expand Up @@ -26,6 +26,9 @@
#ifdef ENABLE_THREADS
#include <mutex>
#define LOCK_MUTEX() std::lock_guard<std::mutex> lg(mtx_nmssm)
namespace flexiblesusy {namespace nmssm_twoloophiggs {
static std::mutex mtx_nmssm; /// locks MSSM fortran functions
}}
#else
#define LOCK_MUTEX()
#endif
Expand All @@ -35,8 +38,6 @@ using namespace flexiblesusy::mssm_twoloophiggs;
namespace flexiblesusy {
namespace nmssm_twoloophiggs {

static std::mutex mtx_nmssm; /// locks MSSM fortran functions

namespace {
template <typename T> T sqr(T a) { return a * a; }
}
Expand Down

0 comments on commit db67c81

Please sign in to comment.