Internals: Add mutex to V3Error (#3680)

This commit is contained in:
Kamil Rakoczy
2023-02-09 22:15:37 -05:00
committed by GitHub
parent 4eb280601e
commit 93d50c4499
19 changed files with 505 additions and 267 deletions
+3 -1
View File
@@ -185,7 +185,9 @@ public:
// For getline()
string m_lineChars; ///< Characters left for next line
void v3errorEnd(std::ostringstream& str) { fileline()->v3errorEnd(str); }
void v3errorEnd(std::ostringstream& str) VL_REQUIRES(V3Error::s().m_mutex) {
fileline()->v3errorEnd(str);
}
static const char* tokenName(int tok);
void debugToken(int tok, const char* cmtp);