mirror of
https://github.com/Z3Prover/z3
synced 2026-06-30 20:38:56 +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
|
|
@ -19,6 +19,7 @@ Revision History:
|
|||
#pragma once
|
||||
|
||||
#include "util/vector.h"
|
||||
#include <atomic>
|
||||
|
||||
void initialize_rlimit();
|
||||
void finalize_rlimit();
|
||||
|
|
@ -28,7 +29,7 @@ void finalize_rlimit();
|
|||
*/
|
||||
|
||||
class reslimit {
|
||||
volatile unsigned m_cancel;
|
||||
std::atomic<unsigned> m_cancel;
|
||||
bool m_suspend;
|
||||
uint64_t m_count;
|
||||
uint64_t m_limit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue