Fix LLVM thread_safety function

This commit is contained in:
Wilson Snyder 2018-08-27 18:25:58 -04:00
parent c93d28050e
commit 45c09f3fae

View File

@ -120,6 +120,7 @@ class VL_CAPABILITY("mutex") VerilatedMutex {
public:
VerilatedMutex() {}
~VerilatedMutex() {}
const VerilatedMutex& operator!() const { return *this; } // For -fthread_safety
/// Acquire/lock mutex
void lock() VL_ACQUIRE() {
// Try to acquire the lock by spinning. If the wait is short,