flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
global_thread_pool.cpp
Go to the documentation of this file.
1// ====================================================================
2// This file is part of FlexibleSUSY.
3//
4// FlexibleSUSY is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published
6// by the Free Software Foundation, either version 3 of the License,
7// or (at your option) any later version.
8//
9// FlexibleSUSY is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with FlexibleSUSY. If not, see
16// <http://www.gnu.org/licenses/>.
17// ====================================================================
18
20#include "thread_pool.hpp"
21#include "logger.hpp"
22
23namespace flexiblesusy {
24
25namespace {
28 VERBOSE_MSG("Creating global thread pool ...");
29 }
30};
31} // anonymous namespace
32
34{
35 static Global_thread_pool_msg msg;
36 static Thread_pool tp;
37 return tp;
38}
39
40} // namespace flexiblesusy
A pool of threads.
Definition: thread_pool.hpp:47
#define VERBOSE_MSG(msg)
Definition: logger.hpp:57
Thread_pool & global_thread_pool()
returns instance to global thread pool