Internals: Add VL_MT_SAFE annotations to const functions (#3681)

This commit is contained in:
Kamil Rakoczy
2022-10-18 17:07:09 -04:00
committed by GitHub
parent 54e3f15dce
commit b6c116d4bf
23 changed files with 380 additions and 342 deletions
+4 -2
View File
@@ -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