mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Add VL_MT_SAFE attribute to functions that requires locking. (#3805)
This commit is contained in:
+2
-2
@@ -498,7 +498,7 @@ V3Number& V3Number::setMask(int nbits) {
|
||||
//======================================================================
|
||||
// ACCESSORS - as strings
|
||||
|
||||
string V3Number::ascii(bool prefixed, bool cleanVerilog) const {
|
||||
string V3Number::ascii(bool prefixed, bool cleanVerilog) const VL_MT_SAFE {
|
||||
std::ostringstream out;
|
||||
|
||||
if (is1Step()) {
|
||||
@@ -1050,7 +1050,7 @@ bool V3Number::isEqAllOnes(int optwidth) const {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool V3Number::isFourState() const {
|
||||
bool V3Number::isFourState() const VL_MT_SAFE {
|
||||
if (isDouble() || isString()) return false;
|
||||
for (int i = 0; i < words(); ++i) {
|
||||
if (m_data.num()[i].m_valueX) return true;
|
||||
|
||||
Reference in New Issue
Block a user