Internals: Add VL_MT_SAFE attribute to functions that requires locking. (#3805)

This commit is contained in:
Kamil Rakoczy
2023-03-17 20:24:15 -04:00
committed by GitHub
parent d6c5d40f9b
commit 798d7346cf
35 changed files with 185 additions and 143 deletions
+3 -3
View File
@@ -67,8 +67,8 @@ public:
: TaskBaseVertex{graphp}
, m_nodep{nodep} {}
~TaskFTaskVertex() override = default;
AstNodeFTask* nodep() const { return m_nodep; }
string name() const override { return nodep()->name(); }
AstNodeFTask* nodep() const VL_MT_STABLE { return m_nodep; }
string name() const override VL_MT_STABLE { return nodep()->name(); }
string dotColor() const override { return pure() ? "black" : "red"; }
AstCFunc* cFuncp() const { return m_cFuncp; }
void cFuncp(AstCFunc* nodep) { m_cFuncp = nodep; }
@@ -80,7 +80,7 @@ public:
explicit TaskCodeVertex(V3Graph* graphp)
: TaskBaseVertex{graphp} {}
~TaskCodeVertex() override = default;
string name() const override { return "*CODE*"; }
string name() const override VL_MT_STABLE { return "*CODE*"; }
string dotColor() const override { return "green"; }
};