3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

constify is_threaded if MT is disabled

This commit is contained in:
Nuno Lopes 2019-03-08 11:16:10 +00:00
parent cd4b53500c
commit 9736c46375
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,7 @@ void set_verbose_stream(std::ostream& str) {
g_verbose_stream = &str;
}
#ifndef _NO_OMP_
#ifdef _WINDOWS
static int g_thread_id = 0;
#else
@ -57,6 +58,7 @@ bool is_threaded() {
#endif
return g_is_threaded;
}
#endif
std::ostream& verbose_stream() {
return *g_verbose_stream;

View file

@ -174,7 +174,11 @@ void set_verbosity_level(unsigned lvl);
unsigned get_verbosity_level();
std::ostream& verbose_stream();
void set_verbose_stream(std::ostream& str);
#ifdef _NO_OMP_
# define is_threaded() false
#else
bool is_threaded();
#endif
#define IF_VERBOSE(LVL, CODE) { \