Pakman
common.h
Go to the documentation of this file.
1 #ifndef COMMON_H
2 #define COMMON_H
3 
4 #include <string>
5 #include <chrono>
6 
13 extern std::chrono::milliseconds g_main_timeout;
14 
16 extern std::chrono::milliseconds g_kill_timeout;
17 
19 extern bool g_force_host_spawn;
20 
22 extern bool g_ignore_errors;
23 
25 extern bool g_discard_child_stderr;
26 
28 extern bool g_program_terminated;
29 
31 extern const char *g_program_name;
32 
34 extern std::string g_output_file;
35 
38 {
39  no_master,
40  serial,
41  mpi,
42 };
43 
46 {
47  no_controller,
48  sweep,
49  rejection,
50  smc,
51 };
52 
53 #endif // COMMON_H
controller_t
Definition: common.h:45
master_t
Definition: common.h:37
bool g_force_host_spawn
Definition: main.cc:29
bool g_program_terminated
Definition: main.cc:32
std::chrono::milliseconds g_kill_timeout
const char * g_program_name
Definition: main.cc:22
bool g_discard_child_stderr
Definition: main.cc:30
std::chrono::milliseconds g_main_timeout
bool g_ignore_errors
Definition: main.cc:28
std::string g_output_file
Definition: main.cc:34