Skip to content

Commit

Permalink
odb: lefin defin comments
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Yuki Imamura <[email protected]>
  • Loading branch information
LucasYuki committed Jan 13, 2025
1 parent 7bc99be commit f3eb228
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/odb/include/odb/defin.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class dbTech;
class defin
{
definReader* _reader;

// Protects the DefParser namespace that has static variables
static std::mutex _def_mutex;

public:
Expand Down
2 changes: 2 additions & 0 deletions src/odb/include/odb/lefin.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ class lefin

private:
lefinReader* _reader;

// Protects the LefParser namespace that has static variables
static std::mutex _lef_mutex;
};

Expand Down
1 change: 1 addition & 0 deletions src/odb/src/defin/defin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

namespace odb {

// Protects the DefParser namespace that has static variables
std::mutex defin::_def_mutex;

defin::defin(dbDatabase* db, utl::Logger* logger, MODE mode)
Expand Down
2 changes: 2 additions & 0 deletions src/odb/src/lefin/lefin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
namespace odb {

using LefParser::lefrSetRelaxMode;

// Protects the LefParser namespace that has static variables
std::mutex lefin::_lef_mutex;

extern bool lefin_parse(lefinReader*, utl::Logger*, const char*);
Expand Down

0 comments on commit f3eb228

Please sign in to comment.