mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Fix clang mutex check.
This commit is contained in:
+4
-4
@@ -147,15 +147,15 @@ class VL_SCOPED_CAPABILITY VerilatedLockGuard {
|
||||
private:
|
||||
VerilatedMutex& m_mutexr;
|
||||
public:
|
||||
explicit VerilatedLockGuard(VerilatedMutex& mutexr) VL_ACQUIRE(mutexr)
|
||||
explicit VerilatedLockGuard(VerilatedMutex& mutexr) VL_ACQUIRE(m_mutexr)
|
||||
: m_mutexr(mutexr) {
|
||||
m_mutexr.lock();
|
||||
}
|
||||
~VerilatedLockGuard() VL_RELEASE() {
|
||||
~VerilatedLockGuard() VL_RELEASE(m_mutexr) {
|
||||
m_mutexr.unlock();
|
||||
}
|
||||
void lock() VL_ACQUIRE(mutexr) { m_mutexr.lock(); }
|
||||
void unlock() VL_RELEASE() { m_mutexr.unlock(); }
|
||||
void lock() VL_ACQUIRE(m_mutexr) { m_mutexr.lock(); }
|
||||
void unlock() VL_RELEASE(m_mutexr) { m_mutexr.unlock(); }
|
||||
};
|
||||
|
||||
#else // !VL_THREADED
|
||||
|
||||
Reference in New Issue
Block a user