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:
parent
cd4b53500c
commit
9736c46375
|
@ -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;
|
||||
|
|
|
@ -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) { \
|
||||
|
|
Loading…
Reference in a new issue