Add VL_MT_SAFE attribute to several functions. (#3729)

This commit is contained in:
Kamil Rakoczy
2023-03-16 19:48:56 -04:00
committed by GitHub
parent b2ced6ff1d
commit bbf53bd5af
28 changed files with 279 additions and 209 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ string AstNode::vcdName(const string& namein) {
return prettyName(pretty);
}
string AstNode::prettyName(const string& namein) {
string AstNode::prettyName(const string& namein) VL_PURE {
// This function is somewhat hot, so we short-circuit some compares
string pretty;
pretty.reserve(namein.length());
@@ -1079,7 +1079,7 @@ bool AstNode::sameTreeIter(const AstNode* node1p, const AstNode* node2p, bool ig
//======================================================================
// Debugging
void AstNode::checkTreeIter(const AstNode* prevBackp) const {
void AstNode::checkTreeIter(const AstNode* prevBackp) const VL_MT_STABLE {
// private: Check a tree and children
UASSERT_OBJ(prevBackp == this->backp(), this, "Back node inconsistent");
switch (this->type()) {