mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
replace remaining volatiles with atomic<>
volatiles are now deprecated in recent C++
This commit is contained in:
parent
a4aa87b6c9
commit
0213af3c61
7 changed files with 19 additions and 11 deletions
|
@ -21,11 +21,12 @@ Revision History:
|
|||
#include<unistd.h>
|
||||
#endif
|
||||
#include<iostream>
|
||||
#include "util/mutex.h"
|
||||
#include "util/str_hashtable.h"
|
||||
#include "util/z3_exception.h"
|
||||
#include "util/z3_version.h"
|
||||
|
||||
static volatile bool g_enable_assertions = true;
|
||||
static atomic<bool> g_enable_assertions(true);
|
||||
|
||||
void enable_assertions(bool f) {
|
||||
g_enable_assertions = f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue