We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf4c496 commit 6eda820Copy full SHA for 6eda820
csrc/ir/container.cpp
@@ -75,6 +75,10 @@ IrContainer::~IrContainer() {
75
clear();
76
}
77
78
+// Note: clear() does not acquire mutex_. It is only called from the
79
+// destructor and Fusion::copy(), both of which guarantee exclusive access.
80
+// This assumption must be revisited in Phase 3 when containers may be shared
81
+// across threads.
82
void IrContainer::clear() noexcept {
83
FUSER_PERF_SCOPE("IrContainer clear");
84
vals_.clear();
0 commit comments