Fix LLVM thread_safety function
This commit is contained in:
parent
c93d28050e
commit
45c09f3fae
|
|
@ -120,6 +120,7 @@ class VL_CAPABILITY("mutex") VerilatedMutex {
|
||||||
public:
|
public:
|
||||||
VerilatedMutex() {}
|
VerilatedMutex() {}
|
||||||
~VerilatedMutex() {}
|
~VerilatedMutex() {}
|
||||||
|
const VerilatedMutex& operator!() const { return *this; } // For -fthread_safety
|
||||||
/// Acquire/lock mutex
|
/// Acquire/lock mutex
|
||||||
void lock() VL_ACQUIRE() {
|
void lock() VL_ACQUIRE() {
|
||||||
// Try to acquire the lock by spinning. If the wait is short,
|
// Try to acquire the lock by spinning. If the wait is short,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue