Skip to content

Commit 31832e8

Browse files
committed
Fix MT annotations
Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
1 parent 1a87cf8 commit 31832e8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/V3Options.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class V3Options final {
570570
bool stopFail() const { return m_stopFail; }
571571
int threads() const VL_MT_SAFE { return m_threads; }
572572
int threadsMaxMTasks() const { return m_threadsMaxMTasks; }
573-
bool mtasks() const { return (m_threads > 1); }
573+
bool mtasks() const VL_MT_SAFE { return (m_threads > 1); }
574574
VTimescale timeDefaultPrec() const { return m_timeDefaultPrec; }
575575
VTimescale timeDefaultUnit() const { return m_timeDefaultUnit; }
576576
VTimescale timeOverridePrec() const { return m_timeOverridePrec; }
@@ -693,7 +693,7 @@ class V3Options final {
693693
}
694694

695695
bool hierarchical() const { return m_hierarchical; }
696-
int hierChild() const { return m_hierChild; }
696+
int hierChild() const VL_MT_SAFE { return m_hierChild; }
697697
bool hierTop() const VL_MT_SAFE { return !m_hierChild && !m_hierBlocks.empty(); }
698698
const V3HierBlockOptSet& hierBlocks() const { return m_hierBlocks; }
699699
// Directory to save .tree, .dot, .dat, .vpp for hierarchical block top

src/V3TSP.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ using StateVec = std::vector<const TspStateBase*>;
4949

5050
// Given an unsorted set of TspState's, sort them to minimize
5151
// the transition cost for walking the sorted list.
52-
void tspSort(const StateVec& states, StateVec* resultp) VL_MT_DISABLED;
52+
void tspSort(const StateVec& states, StateVec* resultp) VL_MT_SAFE;
5353

5454
void selfTest() VL_MT_DISABLED;
5555
} // namespace V3TSP

src/V3VariableOrder.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ class VariableOrder final {
257257
}
258258

259259
public:
260-
static void processModule(AstNodeModule* modp, const MTaskAffinityMap& mTaskAffinity) {
260+
static void processModule(AstNodeModule* modp,
261+
const MTaskAffinityMap& mTaskAffinity) VL_MT_STABLE {
261262
VariableOrder{modp, mTaskAffinity};
262263
}
263264
};

0 commit comments

Comments
 (0)