Skip to content

Commit 36dbf06

Browse files
committed
drt: fix datarace on frNet::modified_ bool
Signed-off-by: osamahammad21 <[email protected]>
1 parent d6e9865 commit 36dbf06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/drt/src/db/obj/frNet.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#pragma once
55

66
#include <algorithm>
7+
#include <atomic>
78
#include <list>
89
#include <memory>
910
#include <utility>
@@ -253,7 +254,7 @@ class frNet : public frBlockObject
253254
std::vector<std::unique_ptr<frGuide>> guides_;
254255
std::vector<frRect> orig_guides_;
255256
odb::dbSigType type_{odb::dbSigType::SIGNAL};
256-
bool modified_{false};
257+
std::atomic<bool> modified_{false};
257258
bool isFakeNet_{false}; // indicate floating PG nets
258259
frNonDefaultRule* ndr_{nullptr};
259260
int absPriorityLvl_{0}; // absolute priority level: will be checked in net

0 commit comments

Comments
 (0)