mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Add VL_MT_SAFE annotations to const functions (#3681)
This commit is contained in:
+4
-2
@@ -17,6 +17,8 @@
|
||||
#ifndef VERILATOR_V3HASH_H_
|
||||
#define VERILATOR_V3HASH_H_
|
||||
|
||||
#include "verilatedos.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
@@ -45,8 +47,8 @@ public:
|
||||
explicit V3Hash(const std::string& val);
|
||||
|
||||
// METHODS
|
||||
uint32_t value() const { return m_value; }
|
||||
std::string toString() const;
|
||||
uint32_t value() const VL_MT_SAFE { return m_value; }
|
||||
std::string toString() const VL_MT_SAFE;
|
||||
|
||||
// OPERATORS
|
||||
// Comparisons
|
||||
|
||||
Reference in New Issue
Block a user