mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
mux
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2788f72bbb
commit
9262908ebb
30 changed files with 191 additions and 341 deletions
|
@ -20,18 +20,16 @@ Revision History:
|
|||
#define MPN_H_
|
||||
|
||||
#include<ostream>
|
||||
#include<mutex>
|
||||
#include "util/util.h"
|
||||
#include "util/buffer.h"
|
||||
#include "util/z3_omp.h"
|
||||
|
||||
typedef unsigned int mpn_digit;
|
||||
|
||||
class mpn_manager {
|
||||
#ifndef _NO_OMP_
|
||||
omp_nest_lock_t m_lock;
|
||||
#endif
|
||||
#define MPN_BEGIN_CRITICAL() omp_set_nest_lock(&m_lock);
|
||||
#define MPN_END_CRITICAL() omp_unset_nest_lock(&m_lock);
|
||||
std::recursive_mutex m_lock;
|
||||
#define MPN_BEGIN_CRITICAL() m_lock.lock();
|
||||
#define MPN_END_CRITICAL() m_lock.unlock();
|
||||
|
||||
public:
|
||||
mpn_manager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue