mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add VL_MT_SAFE attribute to several functions. (#3729)
This commit is contained in:
+2
-2
@@ -142,7 +142,7 @@ string V3Os::filenameDir(const string& filename) {
|
||||
}
|
||||
}
|
||||
|
||||
string V3Os::filenameNonDir(const string& filename) {
|
||||
string V3Os::filenameNonDir(const string& filename) VL_PURE {
|
||||
string::size_type pos;
|
||||
if ((pos = filename.rfind('/')) != string::npos) {
|
||||
return filename.substr(pos + 1);
|
||||
@@ -151,7 +151,7 @@ string V3Os::filenameNonDir(const string& filename) {
|
||||
}
|
||||
}
|
||||
|
||||
string V3Os::filenameNonExt(const string& filename) {
|
||||
string V3Os::filenameNonExt(const string& filename) VL_PURE {
|
||||
string base = filenameNonDir(filename);
|
||||
string::size_type pos;
|
||||
if ((pos = base.find('.')) != string::npos) base.erase(pos);
|
||||
|
||||
Reference in New Issue
Block a user